Replace direct access to time with getmicrotime().
This commit is contained in:
parent
934f5f3306
commit
6efcc7f11d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34945
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user