File: ml-timer.h

package info (click to toggle)
smlnj-runtime 110.44-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,968 kB
  • ctags: 5,368
  • sloc: ansic: 24,674; asm: 4,195; makefile: 1,353; sh: 91
file content (25 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ml-timer.h
 *
 * COPYRIGHT (c) 1992 by AT&T Bell Laboratories.
 */

#ifndef _ML_TIMER_
#define _ML_TIMER_

#ifndef _ML_BASE_
#include "ml-base.h"
#endif

/* we define our own type to represent time values, since some systems have
 * struct timeval, but others do not.
 */
typedef struct {
    Int32_t	seconds;
    Int32_t	uSeconds;
} Time_t;

extern void GetCPUTime (Time_t *user_t, Time_t *sys_t);
extern void StartGCTimer (vproc_state_t *vsp);
extern void StopGCTimer (vproc_state_t *vsp, long *time);

#endif /* !_ML_TIMER_ */