Branch: Tag:

1998-11-20

1998-11-20 06:46:58 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix (I hope)

Rev: src/interpret.c:1.101
Rev: src/threads.h:1.55

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: interpret.c,v 1.100 1998/11/20 01:57:21 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.101 1998/11/20 06:46:56 hubbe Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"
1800: Inside #if defined(PROFILING) and #if defined(HAVE_GETHRTIME)
  #ifdef PROFILING   #ifdef HAVE_GETHRTIME    long long children_base = accounted_time; -  long long start_time = gethrtime(); +  long long start_time = gethrtime() - time_base;    unsigned INT32 self_time_base;   #endif   #endif
2107: Inside #if defined(PROFILING) and #if defined(HAVE_GETHRTIME)
   {    long long time_passed, time_in_children, self_time;    time_in_children= accounted_time - children_base; -  time_passed = gethrtime() - start_time; +  time_passed = gethrtime() - time_base - start_time;    self_time=time_passed - time_in_children;    accounted_time+=self_time;   #ifdef DEBUG