Re: Counting the clock cycles

[ Available lists | Index of freebsd-hackers | Month of Jul 2002 | Week of 17 Jul 2002 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
<kkonaka@mac.com>
Date
17 Jul 2002 14:45:12
Subject
Re: Counting the clock cycles
Message-ID
sqbwuru58rx.wl@nue.mac.com

In reply to

[ Hide this part ]
> I need a way to properly determine passage of time
> that is not affected if I change the system clock
> for example.

how about using setitimer(2) - ITIMER_REAL?

since it appears(?) on almost all unix(-like)
platforms this expires based only on callout (or
jiffies) ticks countdown, and settimeofday(2) never
seems to bother adjusting callout queues.

kenji

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Elapsed time: 0.158 seconds