Graphviz
14.0.3~dev.20251028.0232
Loading...
Searching...
No Matches
timing.c
Go to the documentation of this file.
1
3
/*************************************************************************
4
* Copyright (c) 2011 AT&T Intellectual Property
5
* All rights reserved. This program and the accompanying materials
6
* are made available under the terms of the Eclipse Public License v1.0
7
* which accompanies this distribution, and is available at
8
* https://www.eclipse.org/legal/epl-v10.html
9
*
10
* Contributors: Details at https://graphviz.org
11
*************************************************************************/
12
13
#include <
common/types.h
>
14
#include <
common/utils.h
>
15
#include <time.h>
16
17
static
clock_t
T
;
18
19
void
start_timer
(
void
) {
T
= clock(); }
20
21
double
elapsed_sec
(
void
) {
22
const
clock_t
S
= clock();
23
return
(
S
-
T
) / (double)CLOCKS_PER_SEC;
24
}
S
#define S
Definition
expr.h:72
elapsed_sec
double elapsed_sec(void)
Definition
timing.c:21
T
static clock_t T
Definition
timing.c:17
start_timer
void start_timer(void)
Definition
timing.c:19
types.h
graphs, nodes and edges info: Agraphinfo_t, Agnodeinfo_t and Agedgeinfo_t
utils.h
lib
common
timing.c
Generated by
1.9.8