Updated profiler

This commit is contained in:
dario
2024-07-17 09:11:43 +02:00
parent d12914a2df
commit d801e78424

View File

@@ -15,14 +15,14 @@ namespace sta
{ {
Profiler::Profiler(const char* name) Profiler::Profiler(const char* name)
: name_{name}, : name_{name},
start_{timeUs()} start_{timeMs()}
{ {
} }
Profiler::~Profiler() Profiler::~Profiler()
{ {
STA_DEBUG_PRINTF("[PROFILER] %s took %d us", name_, timeUs() - start_); STA_DEBUG_PRINTF("[PROFILER] %s took %d us", name_, timeMs() - start_);
} }
} // namespace sta } // namespace sta