#include <scope_timer.h>
Definition at line 16 of file scope_timer.h.
◆ ScopeTimer()
dart::ScopeTimer::ScopeTimer |
( |
const char * |
name, |
|
|
bool |
enabled = true |
|
) |
| |
|
inlineexplicit |
Definition at line 18 of file scope_timer.h.
19 : enabled_(enabled), name_(
name), start_(0) {
20 if (!enabled_) {
21 return;
22 }
24 }
static int64_t GetCurrentMonotonicMicros()
◆ ~ScopeTimer()
dart::ScopeTimer::~ScopeTimer |
( |
| ) |
|
|
inline |
Definition at line 32 of file scope_timer.h.
32 {
33 if (!enabled_) {
34 return;
35 }
39 elapsed);
40 }
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
int64_t GetElapsed() const
constexpr double MicrosecondsToSeconds(int64_t micros)
◆ GetElapsed()
int64_t dart::ScopeTimer::GetElapsed |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: