Branch: Tag:

2008-11-07

2008-11-07 01:08:36 by Martin Stjernholm <mast@lysator.liu.se>

Added support for Mach high resolution time, using thread_info() for cpu
time and host_get_clock_service(SYSTEM_CLOCK) for real time.

Note that the resolution returned by clock_get_attributes for the system
clock on OS X is very bad (10 ms), but the time values actually delivered
appears to be much better (on nanosecond scale).

Rev: src/configure.in:1.1072
Rev: src/rusage.c:1.51

1: - AC_REVISION("$Id: configure.in,v 1.1071 2008/09/04 20:32:10 mast Exp $") + AC_REVISION("$Id: configure.in,v 1.1072 2008/11/07 01:08:34 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2413:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1071 2008/09/04 20:32:10 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.1072 2008/11/07 01:08:34 mast Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2451:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1071 2008/09/04 20:32:10 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.1072 2008/11/07 01:08:34 mast Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2460:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1071 2008/09/04 20:32:10 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.1072 2008/11/07 01:08:34 mast Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF
3209:    ws2tcpip.h valgrind/memcheck.h memcheck.h valgrind.h \    sys/prctl.h sys/ioctl.h mach/task_info.h mach/task.h \    mach/mach_init.h syscall.h sys/syscall.h devices/timer.h \ -  direct.h CoreServices/CoreServices.h execinfo.h,,,[ +  direct.h CoreServices/CoreServices.h execinfo.h \ +  mach/mach.h mach/thread_act.h mach/clock.h,,,[   #if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)   #define __NT__   #endif
4475:    clock_getcpuclockid \    backtrace \    SetErrorMode \ +  thread_info \ +  host_get_clock_service \   )      # SunOS 4 realloc() returns NULL when reallocing NULL.