/[gnats]/gnats/libiberty/getruntime.c
ViewVC logotype

Diff of /gnats/libiberty/getruntime.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pdm, Mon Dec 10 23:03:26 2001 UTC revision 1.4 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 1  Line 1 
1  /* Return time used so far, in microseconds.  /* Return time used so far, in microseconds.
2     Copyright (C) 1994, 1999 Free Software Foundation, Inc.     Copyright (C) 1994, 1999, 2002 Free Software Foundation, Inc.
3    
4  This file is part of the libiberty library.  This file is part of the libiberty library.
5  Libiberty is free software; you can redistribute it and/or  Libiberty is free software; you can redistribute it and/or
# Line 22  Boston, MA 02111-1307, USA.  */ Line 22  Boston, MA 02111-1307, USA.  */
22  #include "ansidecl.h"  #include "ansidecl.h"
23  #include "libiberty.h"  #include "libiberty.h"
24    
25    /* On some systems (such as WindISS), you must include <sys/types.h>
26       to get the definition of "time_t" before you include <time.h>.  */
27    #include <sys/types.h>
28    
29  /* There are several ways to get elapsed execution time; unfortunately no  /* There are several ways to get elapsed execution time; unfortunately no
30     single way is available for all host systems, nor are there reliable     single way is available for all host systems, nor are there reliable
31     ways to find out which way is correct for a given host. */     ways to find out which way is correct for a given host. */
# Line 73  Boston, MA 02111-1307, USA.  */ Line 77  Boston, MA 02111-1307, USA.  */
77  #endif  #endif
78  #endif  #endif
79    
80    /*
81    
82    @deftypefn Replacement long get_run_time (void)
83    
84    Returns the time used so far, in microseconds.  If possible, this is
85    the time used by this process, else it is the elapsed time since the
86    process started.
87    
88    @end deftypefn
89    
90    */
91    
92  long  long
93  get_run_time ()  get_run_time ()
94  {  {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26