org.qtitools.qti.node.test
Class Timer

java.lang.Object
  extended by org.qtitools.qti.node.test.Timer
All Implemented Interfaces:
java.io.Serializable

public class Timer
extends java.lang.Object
implements java.io.Serializable

Default implementation of timer.

This class provides current time.

In future this class should be split into interface Timer and class DefaultTimer (implementation of Timer interface). This change should help with testing of time dependent functions (for automated tests must be created special discrete implementation of Timer interface).

Author:
Jiri Kajaba
See Also:
Serialized Form

Constructor Summary
Timer()
          Constructs timer object.
 
Method Summary
 long getCurrentTime()
          Gets current time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Constructs timer object.

Method Detail

getCurrentTime

public long getCurrentTime()
Gets current time.

Returns:
current time


Copyright © 2009. All Rights Reserved.