add Outputable instance for OccIfaceEq
[ghc-hetmet.git] / rts / GetTime.h
1 /* -----------------------------------------------------------------------------
2  *
3  * (c) The GHC Team 2005
4  *
5  * Machine-independent interface to time measurement
6  *
7  * ---------------------------------------------------------------------------*/
8
9 #ifndef GETTIME_H
10 #define GETTIME_H
11
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;
17
18 Ticks getProcessCPUTime     (void);
19 Ticks getThreadCPUTime      (void);
20 Ticks getProcessElapsedTime (void);
21 void  getProcessTimes       (Ticks *user, Ticks *elapsed);
22
23 // Not strictly timing, but related
24 nat   getPageFaults         (void);
25
26 #endif /* GETTIME_H */