From: Hendrik S. <po...@he...> - 2011-01-02 15:49:18
|
Am Dienstag, 26. Oktober 2010, 15:30:16 schrieb Iain Hibbert: > - don't test for HAVE_SYS_TIMES_H before we include "config.h" > > - Opengroup specification says that a struct tms * must be > passed to times() and some implementations don't validate > that, causing a segmentation fault if you pass NULL. > > - cast the clock_t to long for printing > > please note that this usage is still not necessarily correct, the > spec says that the value returned is "clock ticks" which may be > something different than "milliseconds" And the posix manpage specifies it even closer: "Applications should use sysconf(_SC_CLK_TCK) to determine the number of clock ticks per second as it may vary from system to system." Although that part is only informative, can you fix that, too? Thanks... HS |