|MATLAB Function Reference|
Current time as a date vector
returns a 6-element date vector containing the current date and time in decimal form:
c = clock
The first five elements are integers. The seconds element is accurate to several digits beyond the decimal point. The statement
fix(clock) rounds to integer display format.