Changeset 3683 for source


Ignore:
Timestamp:
May 25, 2009, 5:26:52 PM (16 years ago)
Author:
Christoph Mayer
Message:

-getElapsedMillis gefixt

Location:
source/ariba/utility/misc
Files:
2 edited

Legend:

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

    r3037 r3683  
    249249unsigned long Helper::getElapsedMillis ()
    250250{
    251         return static_cast<unsigned long>(((double)clock() / (double)(CLOCKS_PER_SEC)) * 1000.0);
     251        struct timeb tp;
     252        ftime( &tp );
     253        return ( tp.time*1000 + tp.millitm );
    252254}
    253255
  • source/ariba/utility/misc/Helper.h

    r3682 r3683  
    5252#include <sys/types.h>
    5353#include <sys/stat.h>
     54#include <sys/timeb.h>
    5455#include <boost/lexical_cast.hpp>
    5556#include <boost/algorithm/string/replace.hpp>
Note: See TracChangeset for help on using the changeset viewer.