diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-02-27 15:09:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-27 15:09:17 +0000 |
| commit | b0f65ba386c92af2bbbe0f3fd7dbd503df3d69f2 (patch) | |
| tree | 28016c73092536fcb5a9071335a855d86acac23c /source | |
| parent | 46fd5fe81860ee6bd803f836ae78ceb9dc73ccae (diff) | |
Fix unix ProcessUtil::getClockTick (#1246)
Diffstat (limited to 'source')
| -rw-r--r-- | source/core/unix/slang-unix-process-util.cpp | 2 |
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 |
