MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / get_diff

Method get_diff

libCacheSim/dataStructure/sparsepp/spp_timer.h:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45 template<typename T>
46 static T get_diff(const point& start, const point& end)
47 {
48 using duration_t = std::chrono::duration<T, time_unit>;
49
50 return std::chrono::duration_cast<duration_t>(end - start).count();
51 }
52
53 point _start;
54 point _snap;

Callers

nothing calls this directly

Calls 1

countMethod · 0.45

Tested by

no test coverage detected