mytime.m

displays the current date and time, time since the last invocation, and total elapsed time
1.5K 次下载
更新时间 2009/5/8

查看许可证

When called without the reset argument, mytime() displays the current date and time, time since the last invocation, and total elapsed time (since the last reset). If a given time value is less than 120 seconds, it is displayed in seconds and hundredths of seconds. If at least 2 minutes but less than 120 minutes, it is displayed in minutes and hundredths of minutes. If greater than or equal to 120 minutes, it is displayed in hours and hundredths of hours.

When called with the reset argument (the value of this argument is unimportant), the timer is reset to zero.

引用格式

Phillip M. Feldman (2024). mytime.m (https://www.mathworks.com/matlabcentral/fileexchange/24038-mytime-m), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0