Merge remote-tracking branch 'origin/type-nats' into type-nats-merge
[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 Time getProcessCPUTime (void);
15 Time getThreadCPUTime (void);
16 Time getProcessElapsedTime (void);
17 void getProcessTimes (Time *user, Time *elapsed);
18
19 /* Get the current date and time.
20 Uses seconds since the Unix epoch, plus nanoseconds
21 */
22 void getUnixEpochTime (StgWord64 *sec, StgWord32 *nsec);
23
24 // Not strictly timing, but related
25 nat getPageFaults (void);
26
27 #include "EndPrivate.h"
28
29 #endif /* GETTIME_H */