10 Apr 17:35
Re: gettimeofday() resolution in Linux?
From: Andi Kleen <andi <at> firstfloor.org>
Subject: Re: gettimeofday() resolution in Linux?
Newsgroups: gmane.linux.kernel
Date: 2008-04-10 15:35:25 GMT
Subject: Re: gettimeofday() resolution in Linux?
Newsgroups: gmane.linux.kernel
Date: 2008-04-10 15:35:25 GMT
lsorense <at> csclub.uwaterloo.ca (Lennart Sorensen) writes: > > On many systems gettimeofday uses the TSC, but on many multicore systems > the TSC on each core may be out of sync, in which case the cpu you are > running on may give a different gettimeofday result than another cpu, > which is probably a bad thing for some processes. In this case Linux falls back to other timers which are slower and less accurate. jiffies based gettimeofday is theoretically possible, but near never used. -Andi
RSS Feed