MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / counter

Function counter

lib/host/wasi/clock-win.cpp:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 return static_cast<uint64_t>(Frequency.QuadPart);
18}();
19uint64_t counter() noexcept {
20 LARGE_INTEGER_ Counter;
21 QueryPerformanceCounter(&Counter);
22 return static_cast<uint64_t>(Counter.QuadPart);
23}
24} // namespace
25
26WasiExpect<void> Clock::clockResGet(__wasi_clockid_t Id,

Callers 1

clockTimeGetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected