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 (2026). 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
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
