pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1:   /* -*- c -*-   || 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.cmod,v 1.157 2005/03/22 15:42:14 grubba Exp $ + || $Id: builtin.cmod,v 1.158 2005/05/01 12:13:07 per 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.cmod:2732:    *!    *! If fast is specified, the timer will not do system calls to get    *! the current time but instead use the one maintained by pike. This    *! will result in faster but somewhat more inexact timekeeping.    *! Also, if your program never utilizes the pike event loop the pike    *! maintained current time never change.    */    PIKEFUN void create( int|void fast )    {    extern struct timeval current_time; -  THIS->hard_update = !(fast || fast->u.integer); +  THIS->hard_update = !(fast && fast->u.integer);    if( THIS->hard_update )    GETTIMEOFDAY( &current_time );    THIS->last_time = current_time;    }   }      /*! @endclass    */      /*! @endmodule