/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/timing.c File Reference

#include <unistd.h>
#include <sys/types.h>
#include <sys/times.h>
#include <sys/param.h>

Include dependency graph for timing.c:

Go to the source code of this file.

Defines

#define HZ   60
#define GET_TIME(S)   times(&(S))
#define DIFF_IN_SECS(S, T)   ((S.tms_utime + S.tms_stime - T.tms_utime - T.tms_stime)/(double)HZ)

Typedefs

typedef tms mytime_t

Functions

void start_timer (void)
double elapsed_sec (void)


Define Documentation

#define DIFF_IN_SECS ( S,
 )     ((S.tms_utime + S.tms_stime - T.tms_utime - T.tms_stime)/(double)HZ)

Definition at line 29 of file timing.c.

Referenced by elapsed_sec().

#define GET_TIME (  )     times(&(S))

Definition at line 28 of file timing.c.

Referenced by elapsed_sec(), and start_timer().

#define HZ   60

Definition at line 25 of file timing.c.


Typedef Documentation

typedef struct tms mytime_t

Definition at line 27 of file timing.c.


Function Documentation

double elapsed_sec ( void   ) 

Definition at line 48 of file timing.c.

References DIFF_IN_SECS, and GET_TIME.

Referenced by diffeq_model(), rank(), routesplinesterm(), shortest_path(), solve_model(), and stress_majorization_kD_mkernel().

void start_timer ( void   ) 

Definition at line 43 of file timing.c.

References GET_TIME.

Referenced by diffeq_model(), rank(), routesplinesinit(), shortest_path(), and stress_majorization_kD_mkernel().


Generated on Mon Mar 31 19:05:02 2008 for Graphviz by  doxygen 1.5.1