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_ */
|