Hello,
I'm currently using libOTe and reviewing the Timer implementation in cryptoTools/Common/Timer.cpp. I have a question about the logic in Timer::reset():
void Timer::reset()
{
setTimePoint("__Begin__");
mTimes.clear();
}
It appears that:
- A "Begin" timepoint is added via setTimePoint(),
- But then immediately cleared by mTimes.clear().
I believe the intended behavior is to keep "Begin" as the initial reference point after reset. If so, should the order be reversed? I'm not sure whether this is a logic bug or an intentional design choice.