PDA

View Full Version : How to set QElapsedTimer :: ClockType TickCounter?



Excalibur921
3rd November 2017, 17:18
How to read the value of ticks?

//timer3.PerformanceCounter;
//timer3.TickCounter;
//timer3.ClockType(TickCounter);
//timer3.QElapsedTimer::TickCounter;
//timer3.clockType(2);
timer3.clockType(QElapsedTimer::TickCounter);
timer3.start();
time=timer3.nsecsElapsed(); // correctly? Why nsecs? How to read ticks?