Branch: Tag:

2003-02-09

2003-02-09 15:30:57 by Martin Stjernholm <mast@lysator.liu.se>

Better error reporting from get_cpu_time and (pike) gethrvtime.

Rev: src/builtin_functions.c:1.472
Rev: src/gc.c:1.202
Rev: src/pike_rusage.h:1.14
Rev: src/rusage.c:1.32

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_rusage.h,v 1.13 2003/01/13 16:11:32 mast Exp $ + || $Id: pike_rusage.h,v 1.14 2003/02/09 15:30:57 mast Exp $   */      #ifndef PIKE_RUSAGE_H
14:   long *low_rusage(void);      /* get_cpu_time returns the consumed cpu time (both in kernel and user -  * space, if applicable), or zero if it couldn't be read. Note that +  * space, if applicable), or -1 if it couldn't be read. Note that    * many systems have fairly poor resolution, e.g. on Linux x86 it's    * only 0.01 second. gettimeofday can therefore be a better choice to    * measure small time intervals. */