31#ifndef WIN32_LEAN_AND_MEAN
32#define WIN32_LEAN_AND_MEAN
36#include <mach/clock.h>
55 QueryPerformanceFrequency(&m_freq);
58 void Tic() { QueryPerformanceCounter(&
m_start); }
59 void Toc() { QueryPerformanceCounter(&
m_stop); }
64 return (1000.0 * delta.QuadPart) / (double)m_freq.QuadPart;
79 memset(
this, 0,
sizeof(
Timer));
80 host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &m_cclock);
82 ~Timer(
void) { mach_port_deallocate(mach_task_self(), m_cclock); };
83 void Tic() { clock_get_time(m_cclock, &
m_start); }
84 void Toc() { clock_get_time(m_cclock, &
m_stop); }
91 clock_serv_t m_cclock;
Definition: vhacdTimer.h:97
double GetElapsedTime()
Definition: vhacdTimer.h:103
struct timespec m_stop
Definition: vhacdTimer.h:110
Timer(void)
Definition: vhacdTimer.h:99
void Toc()
Definition: vhacdTimer.h:102
struct timespec m_start
Definition: vhacdTimer.h:109
void Tic()
Definition: vhacdTimer.h:101
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
Definition: bullet_cast_bvh_manager.h:49