Re: need time in nano seconds

2004-12-13 Thread Christian Convey
Micheal Mukherji wrote: On Mon, 13 Dec 2004 08:43:28 -0600, Ron Johnson <[EMAIL PROTECTED]> wrote: Remember, though, that a ns is 1 billionth of a second, and so a 3GHz CPU will onll does 3 cycles in a ns. Unless you are coding to the bare metal with a *minimal* OS, like DOS, you can't do anythin

Re: need time in nano seconds

2004-12-13 Thread Eric Gaumer
On Mon, 2004-12-13 at 22:21 +0530, Micheal Mukherji wrote: > That was nice programming... > Thanks.. No problem. Hope it helps... > On Mon, 13 Dec 2004 08:46:46 -0800, Eric Gaumer > <[EMAIL PROTECTED]> wrote: > > timer(START) > > my timed code ... > > timer(STOP) > > timer(VALUE) -- Eric

Re: need time in nano seconds

2004-12-13 Thread Eric Gaumer
On Mon, 2004-12-13 at 19:59 +0530, Micheal Mukherji wrote: > Hello, > Kindly excuse me for posting this on debian thread...I dont know > whether it is apt or not, but as I am using Debian, I am posting > this.. > > Can somebody tell me how I can get time elapsed in nanoseconds > (possibly a functi

Re: need time in nano seconds

2004-12-13 Thread Michael Marsh
On Mon, 13 Dec 2004 21:51:00 +0530, Micheal Mukherji <[EMAIL PROTECTED]> wrote: > On a 1.4 GHz processor, I use JVMPI( an abbreviation for Java Virtual > Machine Programming Interface). It has a method called > GetThreadCPUTime(), which it claims gives thread execution time in > nanoseconds. He doe

Re: need time in nano seconds

2004-12-13 Thread Micheal Mukherji
On Mon, 13 Dec 2004 08:43:28 -0600, Ron Johnson <[EMAIL PROTECTED]> wrote: > Remember, though, that a ns is 1 billionth of a second, and so a > 3GHz CPU will onll does 3 cycles in a ns. Unless you are coding > to the bare metal with a *minimal* OS, like DOS, you can't do > anything useful in 3 clo

Re: need time in nano seconds

2004-12-13 Thread Ron Johnson
On Mon, 2004-12-13 at 19:59 +0530, Micheal Mukherji wrote: > Hello, > Kindly excuse me for posting this on debian thread...I dont know > whether it is apt or not, but as I am using Debian, I am posting > this.. > > Can somebody tell me how I can get time elapsed in nanoseconds > (possibly a functi

Re: need time in nano seconds

2004-12-13 Thread Michael Marsh
On Mon, 13 Dec 2004 19:59:18 +0530, Micheal Mukherji <[EMAIL PROTECTED]> wrote: > Can somebody tell me how I can get time elapsed in nanoseconds > (possibly a function)? > I have looked at the date command, but it is getting overflown with in > a couple of seconds, so on a second probe I dont know