diff options
Diffstat (limited to 'python/src/sa/_sa.pyx')
-rw-r--r-- | python/src/sa/_sa.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |