diff options
Diffstat (limited to 'src/basic_types.cpp')
-rw-r--r-- | src/basic_types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic_types.cpp b/src/basic_types.cpp index 789b312..e872f69 100644 --- a/src/basic_types.cpp +++ b/src/basic_types.cpp @@ -44,10 +44,10 @@ static const int64_t MilliPerOne = 1000L; * clock_gettime seems to be well supported at least on kernel >= 4.4. * Only bfin and sh are missing, while ia64 seems to be complicated. */ -int64_t jau::getCurrentMilliseconds() noexcept { +uint64_t jau::getCurrentMilliseconds() noexcept { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); - return t.tv_sec * MilliPerOne + t.tv_nsec / NanoPerMilli; + return static_cast<uint64_t>( t.tv_sec * MilliPerOne + t.tv_nsec / NanoPerMilli ); } jau::RuntimeException::RuntimeException(std::string const type, std::string const m, const char* file, int line) noexcept |