Branch: Tag:

2003-02-14

2003-02-14 20:00:53 by Martin Stjernholm <mast@lysator.liu.se>

Added PRINT_CPU_TIME for use in printf format strings.

Rev: src/pike_rusage.h:1.15

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.14 2003/02/09 15:30:57 mast Exp $ + || $Id: pike_rusage.h,v 1.15 2003/02/14 20:00:53 mast Exp $   */      #ifndef PIKE_RUSAGE_H
24:   #define LONG_CPU_TIME   #define CPU_TIME_TICKS /* per second */ ((cpu_time_t) 1000000000)   #define CPU_TIME_UNIT "ns" + #define PRINT_CPU_TIME PRINTINT64 "d"   #else   /* The time is returned in milliseconds. (Note that the value will    * wrap after about 49 days.) */   typedef unsigned long cpu_time_t;   #define CPU_TIME_TICKS /* per second */ ((cpu_time_t) 1000)   #define CPU_TIME_UNIT "ms" -  + #define PRINT_CPU_TIME "lu"   #endif   cpu_time_t get_cpu_time (void);