void microtime().

This commit is contained in:
pk 1995-01-05 16:56:59 +00:00
parent 8535ea7174
commit 5188187aff
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock.c,v 1.17 1994/12/17 08:45:32 deraadt Exp $ */ /* $NetBSD: clock.c,v 1.18 1995/01/05 16:56:59 pk Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -931,14 +931,17 @@ out:
* fun, we guarantee that the time will be greater than the value * fun, we guarantee that the time will be greater than the value
* obtained by a previous call. * obtained by a previous call.
*/ */
void
microtime(tvp) microtime(tvp)
register struct timeval *tvp; register struct timeval *tvp;
{ {
int s; int s;
static struct timeval lasttime; static struct timeval lasttime;
if (!oldclk) if (!oldclk) {
return (lo_microtime(tvp)); lo_microtime(tvp);
return;
}
s = splhigh(); s = splhigh();
*tvp = time; *tvp = time;
tvp->tv_usec; tvp->tv_usec;