Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
86
static uint64_t cntr = 0;
87
88
void 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
delayInBenchmark
Function · 0.70
Calls
1
rdtsc
Function · 0.85
Tested by
no test coverage detected