MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / stop

Method stop

framework/timer.h:59–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 */
58 template <typename T = DefaultResolution>
59 double stop()
60 {
61 if (!running)
62 {
63 return 0;
64 }
65
66 running = false;
67 lapping = false;
68 auto duration = std::chrono::duration<double, T>(Clock::now() - start_time);
69 start_time = Clock::now();
70 lap_time = Clock::now();
71
72 return duration.count();
73 }
74
75 /**
76 * @brief Calculates the time difference between now and when the timer was started

Callers 2

load_sceneMethod · 0.80
start_appMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected