X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libiberty%2Fgetruntime.c;h=3f7dc0d117a75f4ab0826eae70abf6419406a2c0;hb=b7ec8e346bea007bbc2a33d9dba08b741e857f6b;hp=f610c940248eeca1349b58e8a4f3b28fff45aa42;hpb=349e82761f2e7e2100e6154bed1f2125cb01be3a;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libiberty/getruntime.c b/libiberty/getruntime.c index f610c940248..3f7dc0d117a 100644 --- a/libiberty/getruntime.c +++ b/libiberty/getruntime.c @@ -1,5 +1,5 @@ /* Return time used so far, in microseconds. - Copyright (C) 1994, 1999 Free Software Foundation, Inc. + Copyright (C) 1994, 1999, 2002 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -22,6 +22,10 @@ Boston, MA 02111-1307, USA. */ #include "ansidecl.h" #include "libiberty.h" +/* On some systems (such as WindISS), you must include + to get the definition of "time_t" before you include . */ +#include + /* There are several ways to get elapsed execution time; unfortunately no single way is available for all host systems, nor are there reliable ways to find out which way is correct for a given host. */ @@ -75,7 +79,7 @@ Boston, MA 02111-1307, USA. */ /* -@deftypefn Replacement long get_run_time () +@deftypefn Replacement long get_run_time (void) Returns the time used so far, in microseconds. If possible, this is the time used by this process, else it is the elapsed time since the