MCPcopy Create free account
hub / github.com/apache/singa / Tick

Method Tick

include/singa/utils/timer.h:37–37  ·  view source on GitHub ↗

Reset the internal time point to the current time

Source from the content-addressed store, hash-verified

35 Timer() { Tick(); }
36 /// Reset the internal time point to the current time
37 void Tick() { last_ = std::chrono::high_resolution_clock::now(); }
38 /// Return the duration since last call to Tick() or since the creation of
39 /// Timer. The template arg must be from Second or Millisecond or Hour.
40 /// The returned value is the count of the time metric.

Callers 3

TESTFunction · 0.80
TrainOneEpochFunction · 0.80
TestOneEpochFunction · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
TestOneEpochFunction · 0.64