30 #ifdef FLOW123D_HAVE_TIMER_QUERY_PERFORMANCE_COUNTER 36 QueryPerformanceCounter (&time);
37 this->ticks = time.QuadPart;
42 LARGE_INTEGER TimePoint::get_frequency () {
43 LARGE_INTEGER frequency;
44 QueryPerformanceFrequency(&frequency);
47 LARGE_INTEGER TimePoint::frequency = TimePoint::get_frequency ();
51 double difference = this->ticks - right.
ticks;
52 return difference / (TimePoint::frequency.QuadPart);
62 chrono::time_point<chrono::high_resolution_clock> time = chrono::high_resolution_clock::now ();
63 this->ticks = chrono::duration_cast<std::chrono::nanoseconds> (time.time_since_epoch ()).count ();
68 double difference = this->ticks - right.
ticks;
69 return difference / (1 * 1000 * 1000 * 1000);
72 #endif //FLOW123D_HAVE_TIMER_CHRONO_HIGH_RESOLUTION
double operator-(const TimePoint &right)