From owner-freebsd-questions@FreeBSD.ORG Tue Apr 29 09:54:14 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38FE137B401 for ; Tue, 29 Apr 2003 09:54:14 -0700 (PDT) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1a-215.pit.adelphia.net [24.53.170.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 369B043F93 for ; Tue, 29 Apr 2003 09:54:13 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h3TGsB0n004622; Tue, 29 Apr 2003 12:54:12 -0400 (EDT) (envelope-from wmoran@potentialtech.com) Message-ID: <3EAEAE33.2030403@potentialtech.com> Date: Tue, 29 Apr 2003 12:54:11 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Shantanu Mahajan References: <20030424202635.GA652@dhumketu.homeunix.net> <20030428090723.GA580@dhumketu.homeunix.net> <200304280940.40131.wmoran@potentialtech.com> <20030429045711.GA635@dhumketu.homeunix.net> In-Reply-To: <20030429045711.GA635@dhumketu.homeunix.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Time Problem in 5.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 16:54:14 -0000 Shantanu Mahajan wrote: > +++ Bill Moran [28-04-03 09:40 -0400]: > | On Monday 28 April 2003 05:07 am, Shantanu Mahajan 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? > | > Should I file a pr? > | > > | > (The machine used is *desktop* machine and don't > | > have any load) > | > | I ran the exact same tests on my newly installed 5.0 > | workstation and got the results expected (i.e. sleep 5 > | actually waited 5 seconds). > | > | Perhaps it's not sleep, but your clock on your PC > | that is the problem. If you time the sleep command > | (with a stopwatch, for example) does it sleep for 5 > | or 10 seconds? Is the clock on your PC actually > | keeping reliable (or close) time? > using stopwatch, I get 5s delay with sleep 5. But > date command shows me 10s delay At least you've deterimined that it's the system's timekeeping and not the sleep command. There were a few FAQs and other information about how to get the timekeeping better in 5. Search around on the FreeBSD site some and see if you can find something that works. -- Bill Moran Potential Technologies http://www.potentialtech.com