| MATLAB Function Reference | Search  Help Desk |
| clock | See Also |
c = clock
c = clock
returns a 6-element date vector containing the current date and time in decimal form:
c = [year month day hour minute seconds]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.
cputime CPU time in seconds
datenum Serial date number
datevec Date components
etime Elapsed time
tic Start a stopwatch timer
toc Read the stopwatch timer