Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 854 Bytes
/* -----------------------------------------------------------------------------
* (c) The GHC Team 2005
* Machine-independent interface to time measurement
* ---------------------------------------------------------------------------*/
#ifndef GETTIME_H
#define GETTIME_H
#include "BeginPrivate.h"
// We'll use a fixed resolution of usec for now. The machine
// dependent implementation may have a different resolution, but we'll
// normalise to this for the machine independent interface.
#define TICKS_PER_SECOND 1000000
typedef StgInt64 Ticks;
Ticks getProcessCPUTime (void);
Ticks getThreadCPUTime (void);
Ticks getProcessElapsedTime (void);
void getProcessTimes (Ticks *user, Ticks *elapsed);
// Not strictly timing, but related
nat getPageFaults (void);
#include "EndPrivate.h"
#endif /* GETTIME_H */
Jump to Line
Something went wrong with that request. Please try again.