[common] 1e9 is a floating point notation

This commit is contained in:
Geoffrey McRae 2020-01-29 14:01:14 +11:00
parent 6e62ea5364
commit 3f3a8f898d
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
B1-134-g5d39b6160a+1
B1-135-g6e62ea5364+1

View File

@ -51,7 +51,7 @@ static inline uint64_t nanotime()
{
struct timespec time;
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
return ((uint64_t)time.tv_sec * 1e9) + time.tv_nsec;
return ((uint64_t)time.tv_sec * 1000000000LL) + time.tv_nsec;
}
static inline void nsleep(uint64_t ns)