public class CallsCounter
extends java.lang.Object
This class counts how many times it was called per second.
This can be really useful to profile whether a certain block of
code is being executed too often.
Usage:
private static CallsCounter counter;
public void someMethod() {
if (counter == null) {
counter = new CallsCounter("someMethod");
}
counter.Update();
// some method's code...
}