Make globals use sharedCAF
[ghc.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 #include "BeginPrivate.h"
13
14 void initializeTimer (void);
15
16 Time getProcessCPUTime (void);
17 Time getProcessElapsedTime (void);
18 void getProcessTimes (Time *user, Time *elapsed);
19
20 /* Get the current date and time.
21 Uses seconds since the Unix epoch, plus nanoseconds
22 */
23 void getUnixEpochTime (StgWord64 *sec, StgWord32 *nsec);
24
25 // Not strictly timing, but related
26 W_ getPageFaults (void);
27
28 #include "EndPrivate.h"
29
30 #endif /* GETTIME_H */