| 497 | } |
| 498 | |
| 499 | Utils::RecursiveStopWatch::RecursiveStopWatch(Utils::TimeSpan& timeSpan, bool enabled) |
| 500 | : m_TimeSpan(timeSpan) |
| 501 | , m_Enabled(enabled) |
| 502 | , m_Start(bx::getHPCounter()) |
| 503 | { |
| 504 | if (m_Enabled) |
| 505 | m_TimeSpan.enter(); |
| 506 | } |
| 507 | |
| 508 | Utils::RecursiveStopWatch::~RecursiveStopWatch() |
| 509 | { |