tail head cat sleep
QR code linking to this page

manページ  — TIME

名称

boottime, time_second, time_uptime – システム時刻変数

内容

書式

#include <sys/time.h>
extern struct timeval boottime;
extern struct time_t time_second;
extern struct timeval time_uptime;

解説

boottime 変数はシステムのブート時刻を保持します。

time_second 変数はシステムの "柱時計" クロック (秒) です。

time_uptime 変数は、ブートしてからの秒数です。

bintime(9), getbintime(9), microtime(9), getmicrotime(9), nanotime(9), getnanotime(9) 関数は、現在時刻をより正確に、不可分に取得することができます。 同様に binuptime(9), getbinuptime(9), microuptime(9), getmicrouptime(9), nanouptime(9), getnanouptime(9) 関数は、ブートしてからの経過時間をより正確に、不可分に取得することができます。 boottime 変数は、特別な警戒なしに読み書きすることができます。

関連項目

clock_settime(2), ntp_adjtime(2), settimeofday(2), getbintime(9), getbinuptime(9), getmicrotime(9), getmicrouptime(9), getnanotime(9), getnanouptime(9), bintime(9), binuptime(9), microtime(9), microuptime(9), nanotime(9,) nanouptime(9) Amsterdam

Poul-Henning Kamp, Proceedings of EuroBSDCon 2002, /usr/share/doc/papers/timecounter.ascii.gz, Timecounters: Efficient and precise timekeeping in SMP kernels,

Marshall Kirk McKusick, George V. Neville-Neil, The Design and Implementation of the FreeBSD Operating System, 57-61,65-66, Addison-Wesley, July 2004.


TIME (9) September 17, 2004

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.