13 : fRunIfTakesTooLong_{nullptr}
17 : fCallIfTakesLongerThan_{callIfTakesLongerThan}
18 , fRunIfTakesTooLong_{f}
21 fStartedAt_ = Time::GetTickCount ();
24 inline WhenTimeExceeded::~WhenTimeExceeded ()
26 if (fRunIfTakesTooLong_ !=
nullptr) {
28 if (timeTaken >= fCallIfTakesLongerThan_) {
29 IgnoreExceptionsForCall (fRunIfTakesTooLong_ (timeTaken));
chrono::duration< double > DurationSeconds
chrono::duration<double> - a time span (length of time) measured in seconds, but high precision.
WhenTimeExceeded(Time::DurationSeconds callIfTakesLongerThan, nullptr_t f)