MCPcopy Create free account
hub / github.com/OAID/Tengine / Stop

Method Stop

core/lib/prof_record.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool ProfTime::Stop(int idx)
53{
54 TimeRecord& r = record[idx];
55
56 r.end_time = get_cur_time();
57
58 uint64_t used_time = r.end_time - r.start_time;
59
60 if(used_time > r.max_time)
61 r.max_time = used_time;
62 if(used_time < r.min_time)
63 r.min_time = used_time;
64
65 r.total_used_time += used_time;
66 r.count++;
67
68 return true;
69}
70
71void ProfTime::Reset(void)
72{

Callers 3

RunMethod · 0.45
DevStopMethod · 0.45
DevStopMethod · 0.45

Calls 1

get_cur_timeFunction · 0.50

Tested by

no test coverage detected