Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > system facilities > timing
next | previous | forward | backward | up | index | toc

timing -- time a computation

Description

timing e evaluates e and returns a list of type Time of the form {t,v}, where t is the number of seconds of cpu timing used, and v is the value of the expression.

The default method for printing such timing results is to display the timing separately in a comment below the computed value.
i1 : timing 3^30

o1 = 205891132094649
     -- .000003539 seconds

o1 : Time
i2 : peek oo

o2 = Time{.000003539, 205891132094649}

See also

For the programmer

The object timing is a keyword.