On Thu, May 1, 2008 at 1:28 PM, Anusha Sekar <[EMAIL PROTECTED]> wrote:
> Prof. Stein,
>
>  I have a couple of questions about the time command.
>
>  1. Is it possible to output more digits, or to output in micro seconds?
>  2. How do you store the output of the command as a number if you are
>  trying to plot time versus n for some calculation which involves n?

If you do the following:

t = cputime()
... some commands...
s = cputime(t)

then s will contain the elapsed time between cputime calls.
Similar remarks for walltime(), which is probably the most
relevant timing to get (if you *minimize* over several timings).

>  3. Where can I find the help document for this command? When I type
>  time?, I get back an error saying that time is not defined. I have
>  tried looking in the Sage docs as well as the python docs.

For benchmarking you are probably better off using the walltime() and
cputime() commands.

>
>  Thanks
>  Anusha
>
>
>  --
>  Make a difference!
>  www.ashanet.org/seattle
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to