Branch: Tag:

2000-08-29

2000-08-29 13:40:14 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

gethrtime for non-solaris x586 implemented [bug 101 (#101)]

Rev: src/acconfig.h:1.65
Rev: src/backend.c:1.58
Rev: src/builtin_functions.c:1.306
Rev: src/configure.in:1.412
Rev: src/main.c:1.101 (#101)
Rev: src/port.c:1.31
Rev: src/port.h:1.30

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.305 2000/08/28 17:55:07 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.306 2000/08/29 13:40:13 mirar Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
4486:    ref_push_object(master());   }    - #ifdef HAVE_GETHRVTIME + #ifdef HAVE_SYS_TIME_H   #include <sys/time.h> -  + #endif    -  + #ifdef HAVE_GETHRVTIME +    PMOD_EXPORT void f_gethrvtime(INT32 args)   {    pop_n_elems(args);    push_int64(gethrvtime()/1000);   } -  + #endif    -  + #ifdef HAVE_GETHRTIME   PMOD_EXPORT void f_gethrtime(INT32 args)   {    pop_n_elems(args);
4521:    push_int64((tv.tv_sec * 1000000) + tv.tv_usec);   #endif /* INT64 */   } - #endif /* HAVE_GETHRVTIME */ + #endif /* HAVE_GETHRTIME */      #ifdef PROFILING   static void f_get_prof_info(INT32 args)