Back to index

glibc  2.9
Functions
clock.c File Reference
#include <sys/times.h>
#include <time.h>

Go to the source code of this file.

Functions

clock_t clock ()

Function Documentation

clock_t clock ( void  )

Definition at line 24 of file clock.c.

{
  struct tms buf;

  if (__times (&buf) < 0)
    return (clock_t) -1;

  return buf.tms_utime + buf.tms_stime;
}

Here is the call graph for this function: