MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / ScopedTimer

Method ScopedTimer

source/util/timer.h:251–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249class ScopedTimer {
250 public:
251 ScopedTimer(std::ostream* out, const char* tag,
252 bool measure_mem_usage = false)
253 : timer(new TimerType(out, measure_mem_usage)), tag_(tag) {
254 timer->Start();
255 }
256
257 // At the end of the scope surrounding the instance of this class, this
258 // destructor saves the last status of resource usage and reports it.

Callers

nothing calls this directly

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected