Add GTrace
Make Fonts an Asset Add FormatMillis and FormatNanos
This commit is contained in:
14
source/godtrace.cpp
Normal file
14
source/godtrace.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <amethyst/godtrace.hpp>
|
||||
#include <amethyst/utils.hpp>
|
||||
|
||||
Amy::GTrace::TraceMap Amy::GTrace::pTraces;
|
||||
|
||||
void Amy::GTrace::Beg(ksr id) {
|
||||
auto trace = GetTraceRef(id);
|
||||
trace->SetStart(Amy::Utils::GetTimeNano());
|
||||
}
|
||||
|
||||
void Amy::GTrace::End(ksr id) {
|
||||
auto trace = GetTraceRef(id);
|
||||
trace->SetEnd(Amy::Utils::GetTimeNano());
|
||||
}
|
||||
Reference in New Issue
Block a user