Refactored Profiler::callTimerFunc() to be easier to read.