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

Documentation / Mathematica / Add-ons & Links / Standard Packages / Utilities /

Utilities`ShowTime`

The function ShowTime uses the built-in function Timing to print timing information for each evaluation. After the package is loaded, ShowTime is automatically applied to every evaluation. Automatic printing of timing information can be turned off using Off[ShowTime] and turned back on using On[ShowTime].

Automatic printing of timing information.

This loads the package.

In[1]:= << Utilities`ShowTime`

The time required to evaluate this numerical integral is printed before returning the result.

In[2]:= NIntegrate[x^2 BesselJ[x, x], {x, 0, 1000}]

Out[2]=

This turns automatic timing off.

In[3]:= Off[ShowTime]

Timing information is printed if ShowTime is entered explicitly.

In[4]:= ShowTime[N[Sum[1/n, {n, 1, 30000}]]]

Out[4]=



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


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