From: David Y. <dav...@in...> - 2011-02-22 14:03:21
|
Function "times" implemented in libstd. - New header libstd/include/sys/times.h, defining struct tms. - New core function: gettimes(clock_t* clks, clock_t* tms_utime, ..., clock_t* tms_cstime) - Implemetation in MSCorelibWrapper: *tms_utime and tms_stime are expressed in centiseconds (it seems to be the unit used by 'times', I didn't find any explication, but it matchs). *tms_cstime and tms_cutime are set to 0. It seems impossible to check for child processes. The only way is using the PerformanceCounter "Creating Process Id", but it doesn't seem to be implemented in Mono. *clks (for 'times' return value) is set to clock(). It should be ok: (http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_19.html) - Implementation in __host.c Just a wrapper to the system 'times'. Affected benchmarks: 186.crafty |