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