MCPcopy Create free account
hub / github.com/MegEngine/MegCC / stop

Method stop

compiler/test/kernel/common/timer.h:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 m_start_point = clock::now();
23 }
24 void stop() {
25 mgb_assert(m_started);
26 mgb_assert(!m_stopped);
27 m_stopped = true;
28 m_stop_point = clock::now();
29 }
30 size_t get_time_in_us() const {
31 return std::chrono::duration_cast<std::chrono::microseconds>(
32 m_stop_point - m_start_point)

Callers 5

searchMethod · 0.80
execMethod · 0.80
proxy_cv_kernelFunction · 0.80
execMethod · 0.80
proxy_kernelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected