Thread Subject: run time display in nano or microseconds

Subject: run time display in nano or microseconds

From: Puvaneswari

Date: 20 Nov, 2009 05:00:33

Message: 1 of 4

can you pls help in displaying the run time of my pgm in nano or microseconds. when i use tic, toc -it displays the run time in seconds.

Subject: run time display in nano or microseconds

From: checker i

Date: 20 Nov, 2009 14:42:04

Message: 2 of 4

"Puvaneswari " <puvana77@hotmail.com> wrote in message <he57pg$rv5$1@fred.mathworks.com>...
> can you pls help in displaying the run time of my pgm in nano or microseconds. when i use tic, toc -it displays the run time in seconds.

why don't you just process the output of 'toc' to what ever units you like.
t=toc;
t_milli= t/1000; and so on

Subject: run time display in nano or microseconds

From: Brian

Date: 20 Nov, 2009 15:08:05

Message: 3 of 4

Wouldn't t_milli=t*1000 instead of t_milli=t/1000?

Subject: run time display in nano or microseconds

From: checker i

Date: 20 Nov, 2009 15:37:08

Message: 4 of 4

"Brian " <k@ee.washington.edu> wrote in message <he6bcl$4ur$1@fred.mathworks.com>...
> Wouldn't t_milli=t*1000 instead of t_milli=t/1000?

u r right :)

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
nano or micro s... Puvaneswari 20 Nov, 2009 00:04:21
run time Puvaneswari 20 Nov, 2009 00:04:20
rssFeed for this Thread

Contact us at files@mathworks.com