summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_tc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 16cf6cdc605..d72f305a0bb 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tc.c,v 1.48 2019/06/03 01:27:30 cheloha Exp $ */
+/* $OpenBSD: kern_tc.c,v 1.49 2019/10/22 20:19:41 cheloha Exp $ */
/*
* Copyright (c) 2000 Poul-Henning Kamp <phk@FreeBSD.org>
@@ -167,6 +167,15 @@ microboottime(struct timeval *tvp)
}
void
+nanoboottime(struct timespec *tsp)
+{
+ struct bintime bt;
+
+ binboottime(&bt);
+ BINTIME_TO_TIMESPEC(&bt, tsp);
+}
+
+void
binuptime(struct bintime *bt)
{
struct timehands *th;