<< calendar | Time functions | cputime >> |
v = clock() |
a vector: [year, month, day, hours, minutes, seconds].
calendar() returns the currently monthly calendar.
The date vector contains the following fields:
year
months [1, 12]
days [1, 31]
hours [0, 23]
minutes [0, 59]
seconds [0, 61]
seconds: field has a fractional part after the decimal point for extended accuracy.
To time the duration of an event, use tic and toc functions instead of clock.
The clock function is based on the system time and thus might not be reliable for time comparison operations.
c = clock()
fix(c)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET