Ignore:
Timestamp:
May 27, 2009, 9:11:23 AM (15 years ago)
Author:
Christoph Mayer
Message:

-millis relativ zum ersten aufruf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/misc/Helper.cpp

    r3690 r3725  
    249249unsigned long Helper::getElapsedMillis ()
    250250{
     251        static unsigned long zero = 0;
     252
    251253        struct timeb tp;
    252254        ftime( &tp );
    253         return ( tp.time*1000 + tp.millitm );
     255
     256        unsigned long val = tp.time*1000 + tp.millitm;
     257        if( zero == 0 ) zero = val;
     258
     259        return val-zero;
    254260}
    255261
Note: See TracChangeset for help on using the changeset viewer.