Lines Matching refs:timerName

617 void Console::PrintTime(std::string timerName, double time, const std::string& log)  in PrintTime()  argument
637 groupIndent.c_str(), timerName.c_str(), hours, minutes, seconds, ms, log.c_str()); in PrintTime()
642 groupIndent.c_str(), timerName.c_str(), minutes, seconds, ms, log.c_str()); in PrintTime()
647 groupIndent.c_str(), timerName.c_str(), seconds, ms, log.c_str()); in PrintTime()
651 groupIndent.c_str(), timerName.c_str(), time, log.c_str()); in PrintTime()
657 std::string timerName = GetTimerOrCounterName(env, info, argc); in Time() local
658 if (timerMap.find(timerName) == timerMap.end()) { in Time()
659 timerMap[timerName] = std::chrono::duration_cast<std::chrono::microseconds> in Time()
662 HILOG_WARN("Timer %{public}s already exists, please check Timer Name", timerName.c_str()); in Time()
670 std::string timerName = GetTimerOrCounterName(env, info, argc); in TimeLog() local
671 if (timerMap.find(timerName) != timerMap.end()) { in TimeLog()
675 double ms = static_cast<uint64_t>(endTime - timerMap[timerName]) / 1000.0; in TimeLog()
677 PrintTime(timerName, ms, content); in TimeLog()
680 groupIndent.c_str(), timerName.c_str()); in TimeLog()
688 std::string timerName = GetTimerOrCounterName(env, info, argc); in TimeEnd() local
689 if (timerMap.find(timerName) != timerMap.end()) { in TimeEnd()
693 double ms = static_cast<uint64_t>(endTime - timerMap[timerName]) / 1000.0; in TimeEnd()
694 PrintTime(timerName, ms, ""); in TimeEnd()
695 timerMap.erase(timerName); in TimeEnd()
698 groupIndent.c_str(), timerName.c_str()); in TimeEnd()