timing.c
Go to the documentation of this file.
1 /*
2  * Copyright 1997, Regents of the University of Minnesota
3  *
4  * timing.c
5  *
6  * This file contains routines that deal with timing Metis
7  *
8  * Started 7/24/97
9  * George
10  *
11  * $Id: timing.c 13936 2013-03-30 03:59:09Z karypis $
12  *
13  */
14 
15 #include "metislib.h"
16 
17 
18 /*************************************************************************
19 * This function clears the timers
20 **************************************************************************/
21 void InitTimers(ctrl_t *ctrl)
22 {
29  gk_clearcputimer(ctrl->RefTmr);
35 }
36 
37 
38 
39 /*************************************************************************
40 * This function prints the various timers
41 **************************************************************************/
42 void PrintTimers(ctrl_t *ctrl)
43 {
44  printf("\nTiming Information -------------------------------------------------");
45  printf("\n Multilevel: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->TotalTmr));
46  printf("\n Coarsening: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->CoarsenTmr));
47  printf("\n Matching: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->MatchTmr));
48  printf("\n Contract: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->ContractTmr));
49  printf("\n Initial Partition: \t %7.3"PRREAL"", gk_getcputimer(ctrl->InitPartTmr));
50  printf("\n Uncoarsening: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->UncoarsenTmr));
51  printf("\n Refinement: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->RefTmr));
52  printf("\n Projection: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->ProjectTmr));
53  printf("\n Splitting: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->SplitTmr));
54 /*
55  printf("\n Aux1Tmr: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->Aux1Tmr));
56  printf("\n Aux2Tmr: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->Aux2Tmr));
57  printf("\n Aux3Tmr: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->Aux3Tmr));
58 */
59  printf("\n********************************************************************\n");
60 }
61 
62 
63 
double RefTmr
double TotalTmr
void PrintTimers(ctrl_t *ctrl)
Definition: timing.c:42
double SplitTmr
double Aux3Tmr
double Aux2Tmr
double InitPartTmr
double UncoarsenTmr
#define gk_clearcputimer(tmr)
Definition: gk_macros.h:32
double CoarsenTmr
#define gk_getcputimer(tmr)
Definition: gk_macros.h:35
double ContractTmr
void InitTimers(ctrl_t *ctrl)
Definition: timing.c:21
double Aux1Tmr
#define PRREAL
double ProjectTmr
double MatchTmr


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:04