RDTSC-based cycle_t for macOS

Windows and macOS now share most of related code
Old implementation using mach_absolute_time() was more precise (at least in theory) but too costly
This commit is contained in:
alexey.lysiuk 2017-01-31 15:56:58 +02:00
commit 1cdfcb4935
3 changed files with 22 additions and 83 deletions

View file

@ -42,15 +42,6 @@
#include "m_swap.h"
#include "sbar.h"
#if defined (__APPLE__)
mach_timebase_info_data_t cycle_t::s_info;
bool cycle_t::s_initialized;
#endif // __APPLE__
FStat *FStat::FirstStat;
FStat::FStat (const char *name)