MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / MicrosecondsFrom

Function MicrosecondsFrom

oneflow/core/vm/virtual_machine.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template<typename T>
52int MicrosecondsFrom(const T& start) {
53 return std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now()
54 - start)
55 .count();
56}
57
58Maybe<void> ForEachThreadCtx(vm::VirtualMachineEngine* engine,
59 const std::function<Maybe<void>(vm::ThreadCtx*)>& DoEach) {

Callers 2

WorkerLoopFunction · 0.85
ScheduleLoopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected