stellar

UCI Chess engine written in C++20
git clone git://git.dimitrijedobrota.com/stellar.git
Log | Files | Refs | README | LICENSE

timer.hpp (307B)


0 #ifndef STELLAR_TIME_H
1 #define STELLAR_TIME_H
3 #include <chrono>
5 namespace timer {
7 inline uint32_t get_ms() {
8 const auto duration = std::chrono::system_clock::now().time_since_epoch();
9 return std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
10 }
12 } // namespace timer
14 #endif