Time Problem in 5.0

John Murphy jfm at blueyonder.co.uk
Mon Apr 28 05:13:36 PDT 2003


Shantanu Mahajan <shantanoo+fbsd at ieee.org> wrote:

>+++ Shantanu Mahajan [freebsd] [25-04-03 01:56 +0530]:
>| 	Hi!
>| 	I am useing 5.0R.
>| 
>| 	> date;sleep 1;date
>| 	Fri Apr 25 01:53:44 IST 2003
>| 	Fri Apr 25 01:53:46 IST 2003
>| 	>
>| 
>| 	I am not able to figure out the problem. any
>| 	comments?
>	
>	Here are few more examples.
>
>	> date;sleep 5;date
>	Mon Apr 28 14:13:45 IST 2003
>	Mon Apr 28 14:13:55 IST 2003
>	> date;sleep 10;date
>	Mon Apr 28 14:14:26 IST 2003
>	Mon Apr 28 14:14:46 IST 2003
>	> date;sleep 15;date
>	Mon Apr 28 14:15:24 IST 2003
>	Mon Apr 28 14:15:54 IST 2003
>	>
>
>	Now, I started the timer simultaneously and found
>	out that "sleep 5" give me dalay of 5 sec. properly.
>	
>	Maybe there is problem with date?

A problem with your clock/hardware I think.  It works fine here:
> uname -a
FreeBSD lexx.my.domain 5.0-RELEASE FreeBSD 5.0-RELEASE#2: Sun Feb  9 19:48:30 GMT 2003     root at lexx.my.domain:/usr/src/sys/i386/compile/LEXX  i386
> date;sleep 5;date
Mon Apr 28 12:41:56 BST 2003
Mon Apr 28 12:42:01 BST 2003
> date ; sleep 10 ; date
Mon Apr 28 12:42:14 BST 2003
Mon Apr 28 12:42:24 BST 2003
> date ; sleep 15 ; date
Mon Apr 28 12:42:37 BST 2003
Mon Apr 28 12:42:52 BST 2003
> date ; sleep 20 ; date
Mon Apr 28 12:43:15 BST 2003
Mon Apr 28 12:43:35 BST 2003

>	Should I file a pr?

Not while it works fine for others.  Does it keep good time generally?

>	(The machine used is *desktop* machine and don't
>	have any load)

Mine too.
John.


More information about the freebsd-questions mailing list