timer stats: Optimize by adding quick check to avoid function calls