Uses the high-resolution performance counter to get the time which exceeds one microsecond accuracy.
time = hat;
% do some calculations
diff = hat - time;
Cita come
Ivo Houtzager (2025). High Accuracy Timer (https://it.mathworks.com/matlabcentral/fileexchange/16534-high-accuracy-timer), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2012b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Clocks and Timers in Help Center e MATLAB Answers
Tag
Riconoscimenti
Ispirato: Simulink Block for Real Time Execution
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
