#14202: Change interface to qsieve to not use system time command
---------------------------------------+------------------------------------
Reporter: jpflori | Owner: was
Type: defect | Status: new
Priority: minor | Milestone: sage-5.8
Component: interfaces | Resolution:
Keywords: time optional sieve | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------------------+------------------------------------
Comment (by jdemeyer):
Replying to [comment:5 kcrisman]:
> I'm changing the summary. This is really a bug, if it's a bug, in the
way interface/qsieve.py is written. Could we use whatever does `time` or
`timeit` in Sage?
Try this:
{{{
sage: ?walltime
Type: function
String Form:<function walltime at 0xb9d488>
File: /usr/local/src/sage-5.7.beta1/local/lib/python2.7/site-
packages/sage/misc/misc.py
Definition: walltime(t=0)
Docstring:
Return the wall time in second, or with optional argument t, return
the wall time since time t. "Wall time" means the time on a wall
clock, i.e., the actual time.
INPUT:
* "t" - (optional) float, time in CPU seconds
OUTPUT:
* "float" - time in seconds
EXAMPLES:
sage: w = walltime()
sage: F = factor(2^199-1)
sage: walltime(w) # somewhat random
0.8823847770690918
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14202#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.