Uses the high-resolution performance counter to get the time which exceeds one microsecond accuracy.
time = hat;
% do some calculations
diff = hat - time;
Citar como
Ivo Houtzager (2026). High Accuracy Timer (https://es.mathworks.com/matlabcentral/fileexchange/16534-high-accuracy-timer), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2012b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Clocks and Timers en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspiración para: Simulink Block for Real Time Execution
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
