Code covered by the BSD License  

Highlights from
High Accuracy Timer for Windows

from High Accuracy Timer for Windows by Ivo Houtzager
High-resolution performance counter

hat
function [time] = hat
%HAT High Accuracy Timer
%  [TIME] = HAT uses the high-resolution performance counter to get the 
%  time which exceeds one microsecond accuracy.

Contact us at files@mathworks.com