MCPcopy Create free account
hub / github.com/NetSys/bess / NanoSecondTime

Method NanoSecondTime

core/utils/codel.h:271–273  ·  view source on GitHub ↗

Returns the current time in microseconds.

Source from the content-addressed store, hash-verified

269
270 // Returns the current time in microseconds.
271 uint64_t NanoSecondTime() {
272 return tsc_to_ns(rdtsc());
273 }
274
275 uint64_t delay_target_; // the delay that codel will adjust for
276 uint64_t window_; // minimum time before changing state

Callers

nothing calls this directly

Calls 2

tsc_to_nsFunction · 0.85
rdtscFunction · 0.85

Tested by

no test coverage detected