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
17static clock_t T;
18
19void start_timer(void) { T = clock(); }
20
21double elapsed_sec(void) {
22 const clock_t S = clock();
23 return (S - T) / (double)CLOCKS_PER_SEC;
24}
#define S
Definition expr.h:72
double elapsed_sec(void)
Definition timing.c:21
static clock_t T
Definition timing.c:17
void start_timer(void)
Definition timing.c:19
graphs, nodes and edges info: Agraphinfo_t, Agnodeinfo_t and Agedgeinfo_t