MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / function

Function function

runtime/Perf.cc:88–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86static uint64_t cntr = 0;
87
88void function(uint64_t cycles) {
89 cntr = cycles*2%100 + PerfUtils::Cycles::rdtsc();
90}
91
92/**
93 * Return the current value of the fine-grain CPU cycle counter

Callers 1

delayInBenchmarkFunction · 0.70

Calls 1

rdtscFunction · 0.85

Tested by

no test coverage detected