run time display in nano or microseconds

  • Follow


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. 
0
Reply Puvaneswari 11/20/2009 5:00:33 AM

"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
0
Reply checker 11/20/2009 2:42:04 PM


Wouldn't t_milli=t*1000 instead of t_milli=t/1000?
0
Reply Brian 11/20/2009 3:08:05 PM

"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 :)
0
Reply checker 11/20/2009 3:37:08 PM

3 Replies
286 Views

(page loaded in 0.037 seconds)

Similiar Articles:













7/24/2012 3:42:43 AM


Reply: