17 #ifndef AP_SEQUENCE_HXX
20 #ifndef _GLIBCXX_STRING
42 start_pars(start_pars_)
50 double seconds = double(end.
ticks-start.
ticks)/CLOCKS_PER_SEC;
51 double pars_improve = start_pars-end_pars;
54 double combines_per_second = combines/seconds;
55 double combines_per_improve = combines/pars_improve;
56 double improve_per_second = pars_improve/seconds;
58 fprintf(out,
"%-27s took %7.2f sec, improve=%9.1f, combines=%12li (comb/sec=%10.2f, comb/impr=%12.2f, impr/sec=%10.2f)\n",
87 double seconds = double(end.
ticks-start.
ticks)/CLOCKS_PER_SEC;
90 double combines_per_second = combines/seconds;
91 double combines_per_insert = combines/double(inserts);
92 double inserts_per_second = inserts/seconds;
94 fprintf(out,
"%-27s took %7.2f sec, inserts=%6i, combines=%12li (comb/sec=%10.2f, comb/ins=%12.2f, ins/sec=%10.2f)\n",
110 #error PerfMeter.h included twice
111 #endif // PERFMETER_H
void dump(FILE *out, Mutations end_pars) const
return string(buffer, length)
void dumpCustom(FILE *out, Mutations end_pars, const char *label) const
void dump(FILE *out) const
OptiPerfMeter(std::string what_, Mutations start_pars_)
InsertPerfMeter(std::string what_, int inserts_)
void dumpCustom(FILE *out, const char *label) const