Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Timing

Usage

Timing[expr] evaluates expr, and returns a list of time used, together with the result obtained.


Notes

Timing gives the CPU time in seconds, multiplied by the symbol Second.
Timing has attribute HoldAll.
Timing[expr;] will give {timing, Null}.
First[Timing[expr;]] /. Second->1 yields just the number of seconds required for the evaluation of expr.
Timing is accurate only down to a granularity of at least $TimeUnit seconds.
Timing includes only CPU time spent in the Mathematica kernel. It does not include time spent in external processes connected via MathLink or otherwise. Nor does it include time spent in the Mathematica front end.
Timing[expr] includes only time spent in the evaluation of expr, and not, for example, in the formatting or printing of the result.
Timing should give accurate results on all operating systems where the running of processes is specifically scheduled by the operating system.
• On certain computer systems with several CPUs the Mathematica kernel may sometimes spawn additional threads on different CPUs. On some operating systems, Timing may ignore these additional threads. On other operating systems, it may give the total time spent in all threads, which may exceed the result from AbsoluteTiming.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: