diff --git a/src/system.cpp b/src/system.cpp index bf7aebae..67054ad6 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -537,7 +537,7 @@ std::string getStackTrace() { static int64_t startTime = 0; #endif -static void initRuntime() { +static void initTime() { #if defined ARCH_WIN assert(startCounter == 0); LARGE_INTEGER counter; @@ -565,6 +565,7 @@ static void initRuntime() { #endif } + double getTime() { #if defined ARCH_WIN LARGE_INTEGER counter; @@ -665,7 +666,7 @@ void runProcessDetached(const std::string& path) { void init() { - initRuntime(); + initTime(); }