loopstruct.cpp | loopstruct.cpp | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
state_ = running; | state_ = running; | |||
t1_ = systemTime(); | t1_ = systemTime(); | |||
} | } | |||
void stop() | void stop() | |||
{ | { | |||
t2_ = systemTime(); | t2_ = systemTime(); | |||
state_ = stopped; | state_ = stopped; | |||
} | } | |||
/* Compaq cxx compiler in ansi mode cannot print out long double type! */ | ||||
#if defined(__DECCXX) | ||||
double elapsedSeconds() | ||||
#else | ||||
long double elapsedSeconds() | long double elapsedSeconds() | |||
#endif | ||||
{ | { | |||
return t2_ - t1_; | return t2_ - t1_; | |||
} | } | |||
private: | private: | |||
Timer(Timer&) { } | Timer(Timer&) { } | |||
void operator=(Timer&) { } | void operator=(Timer&) { } | |||
long double systemTime() | long double systemTime() | |||
{ | { | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |