You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Uses the high-resolution performance counter to get the time which exceeds one microsecond accuracy.
time = hat;
% do some calculations
diff = hat - time;
Cite As
Ivo Houtzager (2026). High Accuracy Timer (https://www.mathworks.com/matlabcentral/fileexchange/16534-high-accuracy-timer), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Simulink Block for Real Time Execution
General Information
- Version 1.2.0.0 (2.13 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
