mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-28 21:17:33 +00:00
Updated profiler
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user