summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/core/unix/slang-unix-process-util.cpp2
1 files changed, 1 insertions, 1 deletions
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