summaryrefslogtreecommitdiff
path: root/rts/GetTime.h
diff options
context:
space:
mode:
Diffstat (limited to 'rts/GetTime.h')
-rw-r--r--rts/GetTime.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/GetTime.h b/rts/GetTime.h
index 7b89c05822..b8d402db7c 100644
--- a/rts/GetTime.h
+++ b/rts/GetTime.h
@@ -22,6 +22,11 @@ Ticks getThreadCPUTime (void);
Ticks getProcessElapsedTime (void);
void getProcessTimes (Ticks *user, Ticks *elapsed);
+/* Get the current date and time.
+ Uses seconds since the Unix epoch, plus nanoseconds
+ */
+void getUnixEpochTime (StgWord64 *sec, StgWord32 *nsec);
+
// Not strictly timing, but related
nat getPageFaults (void);