00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "metislib.h"
00016
00017
00018
00019
00020
00021 void InitTimers(ctrl_t *ctrl)
00022 {
00023 gk_clearcputimer(ctrl->TotalTmr);
00024 gk_clearcputimer(ctrl->InitPartTmr);
00025 gk_clearcputimer(ctrl->MatchTmr);
00026 gk_clearcputimer(ctrl->ContractTmr);
00027 gk_clearcputimer(ctrl->CoarsenTmr);
00028 gk_clearcputimer(ctrl->UncoarsenTmr);
00029 gk_clearcputimer(ctrl->RefTmr);
00030 gk_clearcputimer(ctrl->ProjectTmr);
00031 gk_clearcputimer(ctrl->SplitTmr);
00032 gk_clearcputimer(ctrl->Aux1Tmr);
00033 gk_clearcputimer(ctrl->Aux2Tmr);
00034 gk_clearcputimer(ctrl->Aux3Tmr);
00035 }
00036
00037
00038
00039
00040
00041
00042 void PrintTimers(ctrl_t *ctrl)
00043 {
00044 printf("\nTiming Information -------------------------------------------------");
00045 printf("\n Multilevel: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->TotalTmr));
00046 printf("\n Coarsening: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->CoarsenTmr));
00047 printf("\n Matching: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->MatchTmr));
00048 printf("\n Contract: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->ContractTmr));
00049 printf("\n Initial Partition: \t %7.3"PRREAL"", gk_getcputimer(ctrl->InitPartTmr));
00050 printf("\n Uncoarsening: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->UncoarsenTmr));
00051 printf("\n Refinement: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->RefTmr));
00052 printf("\n Projection: \t\t\t %7.3"PRREAL"", gk_getcputimer(ctrl->ProjectTmr));
00053 printf("\n Splitting: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->SplitTmr));
00054
00055
00056
00057
00058
00059 printf("\n********************************************************************\n");
00060 }
00061
00062
00063