High Accuracy Timer

High-resolution performance counter
4K 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 (2024). High Accuracy Timer (https://www.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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

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