diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1997-03-22 06:53:45 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1997-03-22 06:53:45 +0000 |
| commit | 3c816944262d947cc8e5ffa72cc27abf177c1129 (patch) | |
| tree | 6085c57eec190abf9e7e3278bc513d9419f1c977 /sys/kern/kern_tc.c | |
| parent | f90e4276f212c044404d7322258c4d4649b02037 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_tc.c')
| -rw-r--r-- | sys/kern/kern_tc.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 341c00eaf103..e5fa53962efa 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id$ + * $Id: kern_clock.c,v 1.32 1997/02/22 09:39:02 peter Exp $ */ /* Portions of this software are covered by the following: */ @@ -799,6 +799,17 @@ untimeout(ftn, arg) splx(s); } +void +gettime(struct timeval *tvp) +{ + int s; + + s = splclock(); + /* XXX should use microtime() iff tv_usec is used. */ + *tvp = time; + splx(s); +} + /* * Compute number of hz until specified time. Used to * compute third argument to timeout() from an absolute time. |
