From 54a1c0e2bde259e3acc9c0a8ec8da3c7704e80ca 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