MCPcopy Create free account
hub / github.com/Singular/Singular / TimeStringFractal

Function TimeStringFractal

Singular/walk.cc:396–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396static void TimeStringFractal(clock_t tinput, clock_t tostd, clock_t tif,clock_t tstd,
397 clock_t textra, clock_t tlf,clock_t tred, clock_t tnw)
398{
399
400 double totm = ((double) (clock() - tinput))/1000000;
401 double ostd, mostd, mif, mstd, mextra, mlf, mred, mnw, tot, res;
402 Print("\n// total time = %.2f sec", totm);
403 Print("\n// tostd = %.2f sec = %.2f", ostd=((double) tostd)/1000000,
404 mostd=((((double) tostd)/1000000)/totm)*100);
405 Print("\n// tif = %.2f sec = %.2f", ((double) tif)/1000000,
406 mif=((((double) tif)/1000000)/totm)*100);
407 Print("\n// std = %.2f sec = %.2f", ((double) tstd)/1000000,
408 mstd=((((double) tstd)/1000000)/totm)*100);
409 Print("\n// xstd = %.2f sec = %.2f", ((double) textra)/1000000,
410 mextra=((((double) textra)/1000000)/totm)*100);
411 Print("\n// lift = %.2f sec = %.2f", ((double) tlf)/1000000,
412 mlf=((((double) tlf)/1000000)/totm)*100);
413 Print("\n// ired = %.2f sec = %.2f", ((double) tred)/1000000,
414 mred=((((double) tred)/1000000)/totm)*100);
415 Print("\n// nextw = %.2f sec = %.2f", ((double) tnw)/1000000,
416 mnw=((((double) tnw)/1000000)/totm)*100);
417 tot = mostd+mif+mstd+mextra+mlf+mred+mnw;
418 res = (double) 100.00-tot;
419 Print("\n// &%.2f &%.2f&%.2f &%.2f &%.2f &%.2f &%.2f &%.2f &%.2f&%.2f&%.2f\\ \\ ",
420 ostd,totm,mostd,mif,mstd,mextra,mlf,mred,mnw,tot,res);
421}
422#endif
423
424#ifdef CHECK_IDEAL_MWALK

Callers 6

MAltwalk2Function · 0.85
MpwalkFunction · 0.85
MprwalkFunction · 0.85
MfwalkFunction · 0.85
MfrwalkFunction · 0.85
walk.ccFile · 0.85

Calls 1

PrintFunction · 0.50

Tested by

no test coverage detected