当前位置: 技术问答>linux和unix
hwclock 输出的是什么意思
来源: 互联网 发布时间:2016-12-26
本文导语: 2011年08月29日 星期一 15时45分15秒 -0.140840 seconds 这个 -0.140840是什么意思 | 误差 /*---------------------------------------------------------------------------- Display on Standard Output the value of the Hardw...
2011年08月29日 星期一 15时45分15秒 -0.140840 seconds
这个 -0.140840是什么意思
这个 -0.140840是什么意思
|
误差
/*----------------------------------------------------------------------------
Display on Standard Output the value of the Hardware Clock, which is described by these arguments:
...
referenceTime: The system time at which this program started (so,the moment at which the user wanted to know the time)
readTime: The system time at which we read the clock.
...
*/
...
float const displayDelay = time_diff(readTime, referenceTime);
...
printf("%s %s %.6f seconds %sn",
ctime2(hclockTime),
synchronized ? "" : "+", -(displayDelay),
brokenTime.tm_isdst ? tzname[1] : tzname[0]);
/*----------------------------------------------------------------------------
Display on Standard Output the value of the Hardware Clock, which is described by these arguments:
...
referenceTime: The system time at which this program started (so,the moment at which the user wanted to know the time)
readTime: The system time at which we read the clock.
...
*/
...
float const displayDelay = time_diff(readTime, referenceTime);
...
printf("%s %s %.6f seconds %sn",
ctime2(hclockTime),
synchronized ? "" : "+", -(displayDelay),
brokenTime.tm_isdst ? tzname[1] : tzname[0]);
|
应该是格式吧,不是负时间