Package edu.uiuc.ncsa.security.core.util
Class Benchmarker
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.Benchmarker
-
public class Benchmarker extends Object
Simple bechmarking object. Set a logger. Every time you calllastTime()
the amount of time since you calledlastTime()
us printed. For the total time elapsed, calltotalTime()
There is a canned message that will be printed to the log too, showing both total and elapsed time.Created by Jeff Gaynor
on Nov 10, 2010 at 10:49:51 AM
-
-
Constructor Summary
Constructors Constructor Description Benchmarker(Logable myLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
lastTime()
Get the time elapsed since last callvoid
msg(String x)
long
totalTime()
Get the total elapsed time for this
-