net.grelf.image
Class Timer

java.lang.Object
  extended by net.grelf.image.Timer

public class Timer
extends java.lang.Object

For logging the time taken by an image operation.


Constructor Summary
Timer(java.lang.String anOpName)
          Create a Timer, recording the start time.
Timer(java.lang.String anOpName, java.awt.image.BufferedImage bim)
          Create a Timer, recording the start time.
Timer(java.lang.String anOpName, Image image)
          Create a Timer, recording the start time.
 
Method Summary
 void stop()
          Stop the timer and log the operation name, image size and duration (since the Timer was constructed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer(java.lang.String anOpName)
Create a Timer, recording the start time.


Timer

public Timer(java.lang.String anOpName,
             Image image)
Create a Timer, recording the start time.


Timer

public Timer(java.lang.String anOpName,
             java.awt.image.BufferedImage bim)
Create a Timer, recording the start time.

Method Detail

stop

public void stop()
Stop the timer and log the operation name, image size and duration (since the Timer was constructed).