mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Cleanup.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user