Disambiguate record selectors by type signature
[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 getThreadCPUTime (void);
18 Time getProcessElapsedTime (void);
19 void getProcessTimes (Time *user, Time *elapsed);
20
21 /* Get the current date and time.
22 Uses seconds since the Unix epoch, plus nanoseconds
23 */
24 void getUnixEpochTime (StgWord64 *sec, StgWord32 *nsec);
25
26 // Not strictly timing, but related
27 W_ getPageFaults (void);
28
29 #include "EndPrivate.h"
30
31 #endif /* GETTIME_H */