当前位置: 技术问答>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]);
|
应该是格式吧,不是负时间
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。