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 |
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. */ |
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 |
{ |
{ |