[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need time in nano seconds



On Mon, 13 Dec 2004 19:59:18 +0530, Micheal Mukherji
<michy.mighty@gmail.com> 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 how many times
> it has overflown...

Have you tried clock_gettime()?

> I also googled for it, but all it was showing was links to RTLinux pages.

Sometimes man beats google.

-- 
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh



Reply to: