MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / addResults

Method addResults

lib/timer.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void TimerResults::addResults(const std::string& name, std::chrono::milliseconds duration)
81{
82 std::lock_guard<std::mutex> l(mResultsSync);
83
84 mResults[name].push_back(duration);
85}
86
87void TimerResults::reset()
88{

Callers 3

stopMethod · 0.45
handleReadMethod · 0.45
resultMethod · 0.45

Calls 1

push_backMethod · 0.45

Tested by 1

resultMethod · 0.36