High Accuracy Timer

High-resolution performance counter
4,1K Downloads
Aktualisiert 11. Jul 2015

Lizenz anzeigen

Uses the high-resolution performance counter to get the time which exceeds one microsecond accuracy.
time = hat;
% do some calculations
diff = hat - time;

Zitieren als

Ivo Houtzager (2026). High Accuracy Timer (https://de.mathworks.com/matlabcentral/fileexchange/16534-high-accuracy-timer), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2012b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Clocks and Timers finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert: Simulink Block for Real Time Execution

Version Veröffentlicht Versionshinweise
1.2.0.0

more thread safe
Added Linux support using the POSIX high-resolution performance counter

1.0.0.0