Replace direct access to time with getmicrotime().

This commit is contained in:
Poul-Henning Kamp 1998-03-29 12:15:57 +00:00
parent 934f5f3306
commit 6efcc7f11d
1 changed files with 1 additions and 4 deletions

View File

@ -130,11 +130,8 @@ u_long
get_time(void)
{
struct timeval timecopy;
int x;
x = splclock();
timecopy = time;
splx(x);
getmicrotime(&timecopy);
return timecopy.tv_usec / (1000000 / hz) +
(u_long) timecopy.tv_sec * hz;
}