summaryrefslogtreecommitdiff
path: root/kern/mach_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/mach_clock.c')
-rw-r--r--kern/mach_clock.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index 9076ef4..ee9896a 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -369,6 +369,19 @@ void init_timeout()
}
/*
+ * Record a timestamp in STAMP.
+ */
+void
+record_time_stamp (time_value_t *stamp)
+{
+ do {
+ stamp->seconds = mtime->seconds;
+ stamp->microseconds = mtime->microseconds;
+ } while (stamp->seconds != mtime->check_seconds);
+}
+
+
+/*
* Read the time.
*/
kern_return_t