 |
|
| |
Manual Reference Pages - TIME (9)
NAME
boottime,
time_second,
time_uptime
- system time variables
CONTENTS
Synopsis
Description
See Also
SYNOPSIS
.In sys/time.h
.Vt extern struct timeval boottime ;
.Vt extern struct time_t time_second ;
.Vt extern struct timeval time_uptime ;
DESCRIPTION
The
boottime
variable holds the system boot time.
The
time_second
variable is the systems
"wall time"
clock to the second.
The
time_uptime
variable is the number of seconds since boot.
The
bintime(9),
getbintime(9),
microtime(9),
getmicrotime(9),
nanotime(9),
and
getnanotime(9)
functions can be used to get the current time more accurately and in an
atomic manner.
Similarly, the
The
binuptime(9),
getbinuptime(9),
microuptime(9),
getmicrouptime(9),
nanouptime(9),
and
getnanouptime(9)
functions can be used to get the time elapse since boot more accurately
and in an atomic manner.
The
boottime
variable may be read and written without special precautions.
SEE ALSO
clock_settime(2),
ntp_adjtime(2),
settimeofday(2),
bintime(9),
binuptime(9),
getbintime(9),
getbinuptime(9),
getmicrotime(9),
getmicrouptime(9),
getnanotime(9),
getnanouptime(9),
microtime(9),
microuptime(9),
nanotime(9),
nanouptime(9)
.Rs
Timecounters: Efficient and precise timekeeping in SMP kernels
.Re
.Rs
.Re
| September 17, 2004 | TIME (9) | |
Visit the GSP FreeBSD Man Page Interface. Output converted with manServer 1.07.
|