time interval measuring

From: Andrei Voropaev (avorop_at_mail.ru)
Date: 06/17/04

  • Next message: Alexander Krisak: "Re: time interval measuring"
    Date: 17 Jun 2004 08:08:18 GMT
    
    

    Hello!

    What is the best way to measure elapsed time (wall-clock) between 2
    events up to at least ms? gettimeofday is bad, because clock can be
    moved ahead or back, thus producing incorrect results. clock returns
    only time that process was running. setitimer? But this one allows only
    one timer per process, would it work in multi-threaded enviroment where
    multiple threads would require their own time measurement?

    TIA

    Andrei


  • Next message: Alexander Krisak: "Re: time interval measuring"

    Relevant Pages

    • Re: How to calculate the execution time for a peace of code in Unix env?
      ... or gettimeofday() is that those ... measure elapsed time, ... No, clock() measures processor time. ...
      (comp.lang.c)
    • Re: SR cannot determine Contraction
      ... But observations for a moving clock shows that it is in fact really ... slow.....it accumulates less elapsed time. ... Time is not distance. ... distance on the odometers is due to one car travelled a longer distance than ...
      (sci.physics.relativity)
    • Re: Whats the beef with Einstein?
      ... >> the same elapsed time as on the particular ... >> at the event of coincidence. ... > the B observers would measure the time dilation phenomena that have ... Each A-person will notice on his own clock ...
      (sci.physics)
    • Re: Opinion poll on a version of the twin paradox
      ... Acceleration breaks the symmetry of who ages faster. ... No clock anomaly is ... Acceleration defines which reference frame takes ... the elapsed time in now "off" Clock 2, ...
      (sci.physics)
    • Re: Twin Paradox paper available
      ... Acceleration breaks the symmetry of who ages faster. ... No clock anomaly is ... Acceleration defines which reference frame takes ... the elapsed time in now "off" Clock 2, ...
      (sci.physics)