3 ms·
Years ago I made a little C++ class for this. You could declare { tracer tr(function, ...) timer ti(tr, milliseconds); the constructor of the tim
by kazinator 10y ago
Years ago I made a little C++ class for this. You could declare
{
tracer tr(function, ...)
timer ti(tr, milliseconds);
the constructor of the timer would sample and record the time. The destructor would sample the time again, and if it was over the specified milliseconds, it would log a diagnostic into the tracer.