X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fclock.c;h=3ea70c31c603a10851fde24b6bd0968ec5b932e6;hb=6a0c61b777e6766a82c94d5e0786ce1769867a05;hp=db2509c17f277aaffacd36533797fabcd1d1e037;hpb=252b5132c753830d5fd56823373aed85f2a0db63;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/clock.c b/libiberty/clock.c index db2509c17f..3ea70c31c6 100644 --- a/libiberty/clock.c +++ b/libiberty/clock.c @@ -22,6 +22,18 @@ the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ +/* + +@deftypefn Supplemental long clock (void) + +Returns an approximation of the CPU time used by the process as a +@code{clock_t}; divide this number by @samp{CLOCKS_PER_SEC} to get the +number of seconds used. + +@end deftypefn + +*/ + #include "config.h" #ifdef HAVE_GETRUSAGE