This commit is contained in:
Branimir Karadžić
2017-02-18 21:29:33 -08:00
parent 5bcbf1bd70
commit db5e1d9b8f
11 changed files with 94 additions and 52 deletions

View File

@@ -31,10 +31,13 @@ namespace bx
int64_t i64 = now.tv_sec*INT64_C(1000000000) + now.tv_nsec;
#elif BX_PLATFORM_EMSCRIPTEN
int64_t i64 = int64_t(1000.0f * emscripten_get_now() );
#else
#elif !BX_PLATFORM_NONE
struct timeval now;
gettimeofday(&now, 0);
int64_t i64 = now.tv_sec*INT64_C(1000000) + now.tv_usec;
#else
BX_CHECK(false, "Not implemented!");
int64_t i64 = UINT64_MAX;
#endif // BX_PLATFORM_
return i64;
}