MCPcopy Create free account
hub / github.com/chen3feng/toft / LatencyProc

Function LatencyProc

system/threading/thread_pool_test.cpp:143–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141INSTANTIATE_TEST_CASE_P(ThreadPoolTest, ThreadPoolTest, testing::Values(1, 2, 4, 8, 16, 32));
142
143static void LatencyProc(void* p, int64_t issue_time)
144{
145 int64_t handle_time = RealtimeClock.MicroSeconds();
146 int64_t latency = handle_time - issue_time;
147 AtomicAdd(static_cast<int64_t*>(p), latency);
148}
149
150static void LatencyTest(int loop_count, bool slow_add)
151{

Callers

nothing calls this directly

Calls 2

AtomicAddFunction · 0.85
MicroSecondsMethod · 0.45

Tested by

no test coverage detected