MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Start

Method Start

rtpose_wrapper/src/caffe/util/benchmark.cpp:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void Timer::Start() {
27 if (!running()) {
28 if (Caffe::mode() == Caffe::GPU) {
29#ifndef CPU_ONLY
30 CUDA_CHECK(cudaEventRecord(start_gpu_, 0));
31#else
32 NO_GPU;
33#endif
34 } else {
35 start_cpu_ = boost::posix_time::microsec_clock::local_time();
36 }
37 running_ = true;
38 has_run_at_least_once_ = true;
39 }
40}
41
42void Timer::Stop() {
43 if (running()) {

Callers 5

timeFunction · 0.80
TYPED_TESTFunction · 0.80
load_batchMethod · 0.80
load_batchMethod · 0.80
load_batchMethod · 0.80

Calls

no outgoing calls

Tested by 1

TYPED_TESTFunction · 0.64