Graphviz 13.0.0~dev.20241220.2304
|
#include <sys/types.h>
#include <sys/times.h>
#include <sys/param.h>
#include <common/types.h>
#include <common/utils.h>
Go to the source code of this file.
Macros | |
#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 struct tms | mytime_t |
Functions | |
void | start_timer (void) |
double | elapsed_sec (void) |
Variables | |
static mytime_t | T |
double elapsed_sec | ( | void | ) |
Definition at line 48 of file timing.c.
References DIFF_IN_SECS, GET_TIME, S, and T.
Referenced by cleanup2(), diffeq_model(), init_xdot(), majorization(), rank2(), routesplinesterm(), sgd(), shortest_path(), solve_model(), and stress_majorization_kD_mkernel().
void start_timer | ( | void | ) |
Definition at line 43 of file timing.c.
Referenced by diffeq_model(), gvRenderJobs(), init_mincross(), init_xdot(), kkNeato(), majorization(), rank2(), routesplinesinit(), sgd(), shortest_path(), and stress_majorization_kD_mkernel().
|
static |
Definition at line 41 of file timing.c.
Referenced by elapsed_sec(), ellSeg(), genCnt(), genTree(), get_tri(), and start_timer().