In message <[EMAIL PROTECTED]>, John Hay write s: >Hi, > >>From what stage during the boot process can I trust that microtime() will >give me incrementing time? > >The reason I ask is that I see microtime() jump backwards consistently >during the ich_calibrate() function in the ich sound driver. The values >look basically the same every time. Something like this: > >t1 2 sec 389291 usec >t2 0 sec 32061 usec
Until interrupts work you cannot rely on timecounters. You should probably use microuptime() not microtime() any case. >Can it be that there is some kind of glitch somewhere when the TSC >take over as timecounter? Unlikely. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message