Subject: Re: cost of gettimeofday()
To: None <current-users@netbsd.org>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 03/08/2002 12:29:09
In message <20020308181957.70AA42A54@orchard.arlington.ma.us>, Bill Sommerfeld 
writes:
>> >Well, not gettimeofday() per se, but getting the system tick clock as a
>> >rolling timestamp each time an event fires should be fine, IMHO....
>> 
>> Fair enough.  What's the canonical way to do this?
>
>There are several, documented in time(9) and microtime(9).
>
>If 1/hz resolution is ok, just look in the "mono_time" global
>variable.

Probably not; I want to guess the difference between two adjacent mouse
messages and two bytes of the *same* mouse message.  :)

-s