From d801e78424d0769e70509d90050851c2069b2b8c Mon Sep 17 00:00:00 2001 From: dario Date: Wed, 17 Jul 2024 09:11:43 +0200 Subject: [PATCH] Updated profiler --- src/debug/profile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug/profile.cpp b/src/debug/profile.cpp index 4e7eec6..bc36966 100644 --- a/src/debug/profile.cpp +++ b/src/debug/profile.cpp @@ -15,14 +15,14 @@ namespace sta { Profiler::Profiler(const char* name) : name_{name}, - start_{timeUs()} + start_{timeMs()} { } 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