stellar

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

timer.hpp (261B)


1 #ifndef STELLAR_TIME_H 2 #define STELLAR_TIME_H 3 4 #include <sys/time.h> 5 6 namespace timer { 7 8 inline uint32_t get_ms(void) { 9 struct timeval time; 10 gettimeofday(&time, NULL); 11 return time.tv_sec * 1000 + time.tv_usec / 1000; 12 } 13 14 } // namespace timer 15 16 #endif