LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2009, 02:05 AM   #1
davender84
Member
 
Registered: Feb 2009
Posts: 42

Rep: Reputation: 15
Smile regarding hwclock


hi
i dont understand the full output of hwclock command
when i run hwclock it gives output as below

[root@station5 ~]# hwclock
Thu 12 Mar 2009 12:31:45 PM IST -0.012157 seconds

i want to know that what does last part (-0.012157 seconds) of the output means pls help me
 
Old 03-13-2009, 12:46 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I was curious about this too, so I took a look at the source code and found the following:
Code:
/*----------------------------------------------------------------------------
  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 %s\n", 
               ctime2(hclockTime),
               synchronized ? "" : "+", -(displayDelay), 
               brokenTime.tm_isdst ? tzname[1] : tzname[0]);
¿Claro?
 
Old 03-14-2009, 02:38 PM   #3
davender84
Member
 
Registered: Feb 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Smile hi

Quote:
Originally Posted by norobro View Post
I was curious about this too, so I took a look at the source code and found the following:
Code:
/*----------------------------------------------------------------------------
  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 %s\n", 
               ctime2(hclockTime),
               synchronized ? "" : "+", -(displayDelay), 
               brokenTime.tm_isdst ? tzname[1] : tzname[0]);
¿Claro?
thanks for your support i got the answer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hwclock doesn't do anything fungusamung Linux - Hardware 5 11-15-2006 06:56 PM
hwclock problems =[ alphisb0t Linux - General 1 03-16-2005 09:43 PM
hwclock alaios Linux - General 1 11-02-2004 08:40 AM
hwclock - HTS Linux - Software 4 10-28-2004 02:21 AM
hwclock problem???? cancel_T Linux - General 2 08-02-2002 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration