Time Operations

clock

clock

Returns a vector containing the current date and time as [year month day hour minute seconds].

cputime

cputime

Returns the total system CPU time (in seconds) used by the simulator. The OSX implemementation appears to contain a bug in the underlying library. This has not yet been fixed.

etime

r = etime(t2, t1)

Returns the elapsed time (in seconds) from the input date vector t1 to t2. The inputs are required to have the form, [year month day hour minute seconds].