MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / DurationReached

Method DurationReached

lib/utils/duration.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool Duration::DurationReached()
64{
65 if (IsReset()) {
66 _startTime = std::chrono::high_resolution_clock::now();
67 }
68
69 auto runTime = std::chrono::duration_cast<std::chrono::milliseconds>(
70 std::chrono::high_resolution_clock::now() - _startTime);
71 return runTime.count() >= Milliseconds();
72}
73
74bool Duration::IsReset() const
75{

Callers 6

CheckNoMatchSwitchMethod · 0.45
checkSwitchCooldownMethod · 0.45
checkAudioSwitchMethod · 0.45
CheckConditionMethod · 0.45

Calls 2

nowClass · 0.85
countMethod · 0.80

Tested by

no test coverage detected