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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34945

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;
}