MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Start

Method Start

tensorflow/stream_executor/host/host_timer.cc:27–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using std::chrono::duration_cast;
26
27bool HostTimer::Start(Stream* stream) {
28 return stream->ThenDoHostCallback([this]() { this->StartNow(); }).ok();
29}
30
31bool HostTimer::Stop(Stream* stream) {
32 return stream->ThenDoHostCallback([this]() { this->StopNow(); }).ok();

Callers 1

StartTimerMethod · 0.45

Calls 2

StartNowMethod · 0.95
okMethod · 0.45

Tested by

no test coverage detected