1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team 2005
5 * Machine-independent interface to time measurement
7 * ---------------------------------------------------------------------------*/
12 // We'll use a fixed resolution of usec for now. The machine
13 // dependent implementation may have a different resolution, but we'll
14 // normalise to this for the machine independent interface.
15 #define TICKS_PER_SECOND 1000000
16 typedef StgInt64 Ticks;
18 Ticks getProcessCPUTime (void);
19 Ticks getThreadCPUTime (void);
20 Ticks getProcessElapsedTime (void);
21 void getProcessTimes (Ticks *user, Ticks *elapsed);
23 // Not strictly timing, but related
24 nat getPageFaults (void);
26 #endif /* GETTIME_H */