I need a function that returns a timestamp, in seconds, as a Matlab double (floating point) value. ie. I want a function present_seconds() to return the present time, in seconds, as a Matlab double value.
Timestamp can be elapsed CPU seconds, or seconds of epoch. (I'm using it as a relative value.)
function p = present_seconds
p = 3600 * 24 * now;
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.