[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Måling af tid på mindre end 1 sekund.



Peter Makholm <sslug@sslug> writes:

> Jesper Krogh <sslug@sslug> writes:
> 
> > Kald til time har en "opløsning" på 1 sekund og hvis man nu gerne ville
> > måle noget der tog markant kortere tid. 
> 
> gettimeofday(2) returnerer med mikrosekundopløsning, hvad den eksakte
> opløsning er afhænger i hvert fald af hardware, men det er nok det
> bedste du kan opnå.

Om nødvendigt kan man godt gøre det bedre.
http://sourceforge.net/projects/high-res-timers/

Det skulle være muligt at få mikrosekunds opløsning uden noget stort
overhead.  Findes til både 2.4 og 2.5.

/Esben
-- 
Today, my marker board reads: 'This month is Farm Animal Awareness Week.'
It is also National Singles week. Please do NOT get the two mixed up.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *