45#ifndef LASS_GUARDIAN_OF_INCLUSION_UTIL_STOP_WATCH_H
46#define LASS_GUARDIAN_OF_INCLUSION_UTIL_STOP_WATCH_H
60 typedef Clock::TTime TTime;
62 StopWatch(Clock& iClock, TTime iInitialTime = 0):
68 void reset(TTime iInitialTime = 0)
70 timeBuffer_ = iInitialTime;
76 startTime_ = clock_->time();
80 void restart(TTime iInitialTime = 0)
88 const TTime stopTime = clock_->time();
91 timeBuffer_ += stopTime - startTime_;
99 const TTime t = clock_->time();
100 return isRunning_ ? (timeBuffer_ + t - startTime_) : timeBuffer_;
general utility, debug facilities, ...
Library for Assembled Shared Sources.