diff --git a/src/sage/doctest/util.py b/src/sage/doctest/util.py index 117f15ad9c7..20f611c0587 100644 --- a/src/sage/doctest/util.py +++ b/src/sage/doctest/util.py @@ -23,7 +23,7 @@ # https://www.gnu.org/licenses/ # **************************************************************************** -from sage.misc.timing import walltime +from time import time as walltime from os import sysconf, times def count_noun(number, noun, plural=None, pad_number=False, pad_noun=False): @@ -345,7 +345,7 @@ def stop(self): """ from sage.interfaces.quit import expect_objects self.cputime = self._quick_cputime(expect_objects) - self.cputime - self.walltime = walltime(self.walltime) + self.walltime = walltime() - self.walltime return self def annotate(self, object):