pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || 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: builtin_functions.c,v 1.644 2008/01/05 18:00:06 nilsson Exp $ + || $Id: builtin_functions.c,v 1.645 2008/01/08 17:08:28 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:7340:    pop_n_elems(args);       if (nsec) {    push_int64(time);   #ifndef LONG_CPU_TIME    push_int (1000000000 / CPU_TIME_TICKS);    o_multiply();   #endif    }    else { - #if CPU_TIME_TICKS > 1000000 + #if CPU_TIME_TICKS_LOW > 1000000    push_int64(time / (CPU_TIME_TICKS / 1000000));   #else    push_int64 (time);    push_int (1000000 / CPU_TIME_TICKS);    o_multiply();   #endif    }   }      /*! @decl int gethrtime (void|int nsec)
pike.git/src/builtin_functions.c:7392:       pop_n_elems(args);    if (nsec) {    push_int64(time);   #ifndef LONG_CPU_TIME    push_int (1000000000 / CPU_TIME_TICKS);    o_multiply();   #endif    }    else { - #if CPU_TIME_TICKS > 1000000 +  fprintf(stderr, +  "time: %ld\n" +  "ticks: %ld\n", +  time, CPU_TIME_TICKS); + #if CPU_TIME_TICKS_LOW > 1000000    push_int64(time / (CPU_TIME_TICKS / 1000000));   #else    push_int64 (time);    push_int (1000000 / CPU_TIME_TICKS);    o_multiply();   #endif    }   }      #ifdef PROFILING