You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/10/24 13:32:37 UTC

[GitHub] [incubator-kvrocks] PragmaTwice commented on pull request #1038: Use a consistent way to get the current time

PragmaTwice commented on PR #1038:
URL: https://github.com/apache/incubator-kvrocks/pull/1038#issuecomment-1289042472

   > > Hi, `clock_gettime` is a posix api. maybe `std::steady_clock` is better here.
   > 
   > @mapleFU Yes, we are using C++ `std::chrono::system_clock` API instead of `clock_gettime` directly, can see `Util::GetTimeStamp*`.
   
   Maybe it is [steady_clock](https://en.cppreference.com/w/cpp/chrono/steady_clock), which is a monotonic clock rather than [system_clock](https://en.cppreference.com/w/cpp/chrono/system_clock) in c++11 and later.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org