version 1.49.4.1, 2019/06/10 22:09:03 |
version 1.49.4.2, 2020/04/08 14:08:51 |
Line 519 getmicrotime(struct timeval *tvp) |
|
Line 519 getmicrotime(struct timeval *tvp) |
|
} while (gen == 0 || gen != th->th_generation); |
} while (gen == 0 || gen != th->th_generation); |
} |
} |
|
|
|
void |
|
getnanoboottime(struct timespec *tsp) |
|
{ |
|
struct bintime bt; |
|
|
|
getbinboottime(&bt); |
|
bintime2timespec(&bt, tsp); |
|
} |
|
|
|
void |
|
getmicroboottime(struct timeval *tvp) |
|
{ |
|
struct bintime bt; |
|
|
|
getbinboottime(&bt); |
|
bintime2timeval(&bt, tvp); |
|
} |
|
|
|
void |
|
getbinboottime(struct bintime *bt) |
|
{ |
|
|
|
/* |
|
* XXX Need lockless read synchronization around timebasebin |
|
* (and not just here). |
|
*/ |
|
*bt = timebasebin; |
|
} |
|
|
/* |
/* |
* Initialize a new timecounter and possibly use it. |
* Initialize a new timecounter and possibly use it. |
*/ |
*/ |
Line 1331 inittimecounter(void) |
|
Line 1360 inittimecounter(void) |
|
* Set the initial timeout to |
* Set the initial timeout to |
* max(1, <approx. number of hardclock ticks in a millisecond>). |
* max(1, <approx. number of hardclock ticks in a millisecond>). |
* People should probably not use the sysctl to set the timeout |
* People should probably not use the sysctl to set the timeout |
* to smaller than its inital value, since that value is the |
* to smaller than its initial value, since that value is the |
* smallest reasonable one. If they want better timestamps they |
* smallest reasonable one. If they want better timestamps they |
* should use the non-"get"* functions. |
* should use the non-"get"* functions. |
*/ |
*/ |