public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Microsecond accuracy
@ 2000-12-07 11:42 Kotsovinos Vangelis
  2000-12-07 12:36 ` Tigran Aivazian
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Kotsovinos Vangelis @ 2000-12-07 11:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Kotsovinos Vangelis


Is there any way to measure (with microsecond accuracy) the time of a
program execution (without using Machine Specific Registers) ?
I've already tried getrusage(), times() and clock() but they all have
10 millisecond accuracy, even though they claim to have microsecond
acuracy.
The only thing that seems to work is to use one of the tools that measure
performanc through accessing the machine specific registers. They give you
the ability to measure the clock cycles used, but their accuracy is also
very low from what I have seen up to now.

Thank you very much in advance

--) Vangelis

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2000-12-13 15:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-07 11:42 Microsecond accuracy Kotsovinos Vangelis
2000-12-07 12:36 ` Tigran Aivazian
2000-12-07 14:13   ` Tigran Aivazian
2000-12-07 15:33     ` H. Peter Anvin
2000-12-07 16:07       ` Maciej W. Rozycki
2000-12-07 19:28         ` [PATCH] setup.c notsc " Hugh Dickins
2000-12-07 20:48           ` Maciej W. Rozycki
2000-12-13 14:10           ` H. Peter Anvin
2000-12-07 16:54 ` Christopher Friesen
2000-12-08  0:17   ` Kotsovinos Vangelis
2000-12-07 21:14 ` Karim Yaghmour
2000-12-08  0:18   ` Kotsovinos Vangelis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox