#188 Timestamp DELTA when using secs and usecs

trunk
closed
modules (179)
5
2011-06-30
2011-06-29
No

Calculating the delta of two timestamps taken with the new function that returns SECS and USECS from a single call
can be tedious in script.

It would be much easier if there would be a simple function for this that returns DELTA in MILLISECONDS like...

example: ts_millisec_delta(t1_secs,t1_usec,t2_secs,t2_usec)

Discussion

  • Bogdan-Andrei Iancu

    There is no patch attached :(...or it is a feature request ? ;)

    Regards,
    Bogdan

     
  • Bogdan-Andrei Iancu

    • labels: 1120305 --> modules
    • assigned_to: nobody --> razvancrainea
     
  • Razvan Crainea

    Razvan Crainea - 2011-06-30
    • status: open --> closed
     
  • Razvan Crainea

    Razvan Crainea - 2011-06-30

    Hi,

    I have just created a function called 'ts_usec_delta' in the 'cfgutils' module that returns the difference between two timestamps in microseconds.

    Regards,
    Razvan

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks