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.500 2003/08/04 15:39:38 grubba Exp $ + || $Id: builtin_functions.c,v 1.501 2003/08/04 16:23:29 grubba Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.500 2003/08/04 15:39:38 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.501 2003/08/04 16:23:29 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:6133: Inside #if CPU_TIME_IS_THREAD_LOCAL == PIKE_YES
   * returning a negative number. */   #if CPU_TIME_IS_THREAD_LOCAL == PIKE_YES    time -= Pike_interpreter.thread_state->auto_gc_time;   #elif CPU_TIME_IS_THREAD_LOCAL == PIKE_NO    time -= auto_gc_time;   #endif       nsec = args && !UNSAFE_IS_ZERO(Pike_sp-args);       pop_n_elems(args); -  if (args) +  if (nsec)    push_int64(time);    else    push_int64(time/1000);   }      /*! @decl int gethrtime (void|int nsec)    *!    *! Return the real time since some arbitrary event in the past. The    *! time is normally returned in microseconds, but if the optional    *! argument @[nsec] is nonzero it's returned in nanoseconds.