High Accuracy Timer

High-resolution performance counter
4,1K téléchargements
Mise à jour 11 juil. 2015

Afficher la licence

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

Citation pour cette source

Ivo Houtzager (2025). High Accuracy Timer (https://fr.mathworks.com/matlabcentral/fileexchange/16534-high-accuracy-timer), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2012b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Clocks and Timers dans Help Center et MATLAB Answers
Remerciements

A inspiré : 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 Publié le Notes de version
1.2.0.0

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

1.0.0.0