Skip to content

global cputime (inclusive some subprocesses like Singular) #4761

@malb

Description

@malb

I always found this annoying:

sage: t = cputime()
sage: P = PolynomialRing(QQ,8,'x')
sage: I = sage.rings.ideal.Katsura(P)
sage: I.groebner_basis()
sage: print cputime(t)
0.217967

so here's my proposal for a fix:

sage: t = cputime_gobal()
sage: P = PolynomialRing(QQ,8,'x')
sage: I = sage.rings.ideal.Katsura(P)
sage: I.groebner_basis()
sage: print cputime_global(t)
5.647973

I am not sure if the design is particularly nice though.

Component: misc

Keywords: global cputime subprocesses

Author: Martin Albrecht

Reviewer: Simon King, Nick Alexander

Merged: sage-4.1.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/4761

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions