Code covered by the BSD License  

Highlights from
mytime.m

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.49 KB File ID: #24038

mytime.m

by Phillip M. Feldman

 

08 May 2009

displays the current date and time, time since the last invocation, and total elapsed time

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
time Phillip M. Feldman 08 May 2009 10:12:20
date Phillip M. Feldman 08 May 2009 10:12:20
current time Phillip M. Feldman 08 May 2009 10:12:20
elapsed time Phillip M. Feldman 08 May 2009 10:12:20
benchmarking Phillip M. Feldman 08 May 2009 10:12:20

Contact us at files@mathworks.com