From 0187447a643c3ea262b13b3052cb1531990eafe6 Mon Sep 17 00:00:00 2001 From: Paul Baltescu Date: Tue, 19 Feb 2013 21:23:48 +0000 Subject: Timing every part of the extractor. --- python/src/sa/_sa.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/src/sa/_sa.pyx') diff --git a/python/src/sa/_sa.pyx b/python/src/sa/_sa.pyx index 50da4235..4716d174 100644 --- a/python/src/sa/_sa.pyx +++ b/python/src/sa/_sa.pyx @@ -2,7 +2,7 @@ import logging import resource import gzip -cdef float monitor_cpu(): +def monitor_cpu(): return (resource.getrusage(resource.RUSAGE_SELF).ru_utime+ resource.getrusage(resource.RUSAGE_SELF).ru_stime) -- cgit v1.2.3