Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


alex
Posts:
6
Registered:
12/7/04


Help : What's the real difference between the function CPUTIME and TIC,TOC???
Posted:
Sep 23, 1996 4:15 PM


Hi,
I need to know what's the real difference between the function CPUTIME and the combination between TIC,TOC?
When i run a function, it is always almost the same time that is printed or what MAthworks mean exactly by CPUTIME, the help given is not very clear (that of the manual too). PArticularly the it is not said that there's a difference between the two function.. First i thought that we can compute with CPUTIME the effective time needed by the CPU..
In other words, let us suppose that we have to compute the elapsed time needed for <a_function>
> tic, <a_function>,t1 = toc
> t0=cputime;<a_function>, t2 = cputimet;Are t1 and t2 ALWAYS equal?????? Any help will be appreciated, S. Guetari



