profiling
Henry Cejtin
henry@sourcelight.com
Thu, 19 Apr 2001 21:33:19 -0500
My feeling is that the times system call, which has been in Unix since at
least version 7, is a bit obsolete and that getrusage() is the more modern
interface. Note, there isn't a race condition in getrusage() really because
the children times are ONLY for children that have exited (and even then,
only if you have waited for them or are ignoring SIGCHLD). Thus they aren't
going to magically change between the two calls to getrusage().