18 #if defined(_WIN32) || defined(_WIN64) 21 #include <sys/times.h> 38 #if !defined(_WIN32) && !defined(_WIN64) 41 #if defined(_WIN32) || defined(_WIN64) 44 gettimeofday(&tp, NULL);
48 sec = -(tp.tv_sec + 1);
49 usec = (1000000 - tp.tv_usec);
70 #if !defined(_WIN32) && !defined(_WIN64) 74 #if defined(_WIN32) || defined(_WIN64) 78 gettimeofday(&tp, NULL);
80 if(tp.tv_usec +
usec > 1000000)
82 sec += (tp.tv_sec + 1);
83 usec -= (1000000 - tp.tv_usec);
102 #if !defined(_WIN32) && !defined(_WIN64) 109 #if defined(_WIN32) || defined(_WIN64) 113 gettimeofday(&tp, NULL);
116 if(tp.tv_usec +
usec > 1000000)
118 (
usec - 1000000) + tp.tv_usec);
virtual Real time() const
virtual Real lastTime() const
enum soplex::Timer::@2 status
status of the timer
Real wall2sec(time_t s, time_t us) const
convert wallclock time to secounds.
virtual void start()
start timer, resume accounting user, system and real time.
Debugging, floating point type and parameter definitions.
Everything should be within this namespace.
virtual Real stop()
stop timer, return accounted user time.