How to check on process time?
Donn Cave
donn at u.washington.edu
Wed Jan 10 20:29:13 EST 2001
Quoth <phys137 at mailcity.com>:
| long time ago i used sun's call 'getresourceusage' to obtain process times
| on bsd - some other unixes had similar calls or not
You might be thinking of something like this:
import resources
resource.getrlimit(resource.RUSAGE_SELF)
Which is reasonably portable, but doesn't meet the requirement because
it can get usage for only the current process, or its children.
Donn Cave, donn at u.washington.edu
More information about the Python-list
mailing list