#include <timer.h>
|
| typedef std::chrono::high_resolution_clock | Clock |
| |
|
| | Timer () |
| |
| | ~Timer () |
| |
| double | Tic () |
| |
| double | Ptic (const std::string &prefix=std::string()) |
| |
| double | Toc () |
| |
| double | Ptoc (const std::string &prefix=std::string()) |
| |
Definition at line 56 of file timer.h.
| bsfm::util::Timer::Timer |
( |
| ) |
|
| bsfm::util::Timer::~Timer |
( |
| ) |
|
| double bsfm::util::Timer::Ptic |
( |
const std::string & |
prefix = std::string() | ) |
|
Definition at line 59 of file timer.cpp.
62 if (!prefix.empty()) {
63 fputs(prefix.c_str(), stdout);
68 duration_cast<nanoseconds>(
start_.time_since_epoch()).count() * 1e-9;
69 printf(
"Begin: %lf (s)\n", start_double);
| double bsfm::util::Timer::Ptoc |
( |
const std::string & |
prefix = std::string() | ) |
|
Definition at line 79 of file timer.cpp.
80 if (!prefix.empty()) {
81 fputs(prefix.c_str(), stdout);
85 Clock::duration elapsed = Clock::now() -
start_;
86 double elapsed_double = duration_cast<nanoseconds>(elapsed).count() * 1e-9;
88 printf(
"Elapsed: %lf (s)\n", elapsed_double);
89 return elapsed_double;
| double bsfm::util::Timer::Tic |
( |
| ) |
|
Definition at line 52 of file timer.cpp.
55 duration_cast<nanoseconds>(
start_.time_since_epoch()).count() * 1e-9;
| double bsfm::util::Timer::Toc |
( |
| ) |
|
Definition at line 73 of file timer.cpp.
74 Clock::duration elapsed = Clock::now() -
start_;
75 double elapsed_double = duration_cast<nanoseconds>(elapsed).count() * 1e-9;
76 return elapsed_double;
| Clock::time_point bsfm::util::Timer::start_ |
|
private |
The documentation for this class was generated from the following files:
- /Users/eanelson/Git/berkeley_sfm/src/cpp/util/timer.h
- /Users/eanelson/Git/berkeley_sfm/src/cpp/util/timer.cpp