tech-userlevel archive

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

Re: Getting the (up)time with milliseconds resolution

> I know about the kernel time functions, but what is available in
> userland to get time with millisecond resolution?

gettimeofday() has microsecond resolution.

Or do you mean millisecond _accuracy_?  Not all ports even support
that; on the ones that do, I think gettimeofday() generally uses it -
and if it doesn't, it's a quality-of-implementation failure.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index