stellarUCI Chess engine written in C++20 |
git clone git://git.dimitrijedobrota.com/stellar.git |
Log | Files | Refs | README | LICENSE |
timer.hpp (261B)
0 #ifndef STELLAR_TIME_H
1 #define STELLAR_TIME_H
3 #include <sys/time.h>
5 namespace timer {
7 inline uint32_t get_ms(void) {
8 struct timeval time;
9 gettimeofday(&time, NULL);
10 return time.tv_sec * 1000 + time.tv_usec / 1000;
11 }
13 } // namespace timer
15 #endif