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

Method tick

framework/timer.h:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 */
102 template <typename T = DefaultResolution>
103 double tick()
104 {
105 auto now = Clock::now();
106 auto duration = std::chrono::duration<double, T>(now - previous_tick);
107 previous_tick = now;
108 return duration.count();
109 }
110
111 /**
112 * @brief Check if the timer is running

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected