From b0f65ba386c92af2bbbe0f3fd7dbd503df3d69f2 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 27 Feb 2020 15:09:17 +0000 Subject: Fix unix ProcessUtil::getClockTick (#1246) --- source/core/unix/slang-unix-process-util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core') diff --git a/source/core/unix/slang-unix-process-util.cpp b/source/core/unix/slang-unix-process-util.cpp index ec5d4865a..3f052b09d 100644 --- a/source/core/unix/slang-unix-process-util.cpp +++ b/source/core/unix/slang-unix-process-util.cpp @@ -270,7 +270,7 @@ namespace Slang { { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); - return now.tv_sec + now.tv_nsec; + return uint64_t(now.tv_sec) * 1000000000 + now.tv_nsec; } } // namespace Slang -- cgit v1.2.3