1 #ifndef CAFFE_UTIL_BENCHMARK_H_ 2 #define CAFFE_UTIL_BENCHMARK_H_ 4 #include <boost/date_time/posix_time/posix_time.hpp> 6 #include "caffe/util/device_alternate.hpp" 16 virtual float MilliSeconds();
17 virtual float MicroSeconds();
18 virtual float Seconds();
20 inline bool initted() {
return initted_; }
21 inline bool running() {
return running_; }
22 inline bool has_run_at_least_once() {
return has_run_at_least_once_; }
29 bool has_run_at_least_once_;
31 cudaEvent_t start_gpu_;
32 cudaEvent_t stop_gpu_;
34 boost::posix_time::ptime start_cpu_;
35 boost::posix_time::ptime stop_cpu_;
36 float elapsed_milliseconds_;
37 float elapsed_microseconds_;
46 virtual float MilliSeconds();
47 virtual float MicroSeconds();
52 #endif // CAFFE_UTIL_BENCHMARK_H_ Definition: benchmark.hpp:10
A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14
Definition: benchmark.hpp:40