MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / Timer

Method Timer

include/util/time.h:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 time_point start;
39
40 Timer(const char *_prompt, int _log_frequency = 1)
41 : prompt(_prompt), log_frequency(_log_frequency), start(clock::now()) {
42 if (occurrence.find(prompt) == occurrence.end())
43 occurrence[prompt] = 0;
44 }
45
46 ~Timer() {
47 time_point end = clock::now();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected