|
@@ -537,7 +537,7 @@ std::string getStackTrace() { |
|
|
static int64_t startTime = 0; |
|
|
static int64_t startTime = 0; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
static void initRuntime() { |
|
|
|
|
|
|
|
|
static void initTime() { |
|
|
#if defined ARCH_WIN |
|
|
#if defined ARCH_WIN |
|
|
assert(startCounter == 0); |
|
|
assert(startCounter == 0); |
|
|
LARGE_INTEGER counter; |
|
|
LARGE_INTEGER counter; |
|
@@ -565,6 +565,7 @@ static void initRuntime() { |
|
|
#endif |
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double getTime() { |
|
|
double getTime() { |
|
|
#if defined ARCH_WIN |
|
|
#if defined ARCH_WIN |
|
|
LARGE_INTEGER counter; |
|
|
LARGE_INTEGER counter; |
|
@@ -665,7 +666,7 @@ void runProcessDetached(const std::string& path) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void init() { |
|
|
void init() { |
|
|
initRuntime(); |
|
|
|
|
|
|
|
|
initTime(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|