net.thucydides.core.pages
Class InternalSystemClock

Package class diagram package InternalSystemClock
java.lang.Object
  extended by net.thucydides.core.pages.InternalSystemClock
All Implemented Interfaces:
SystemClock

public class InternalSystemClock
extends Object
implements SystemClock

Object that encapsulates system clock operations.


Constructor Summary
InternalSystemClock()
           
 
Method Summary
 org.joda.time.DateTime getCurrentTime()
          Find the current system time.
 void pauseFor(long timeInMilliseconds)
          Pause execution for the requested delay.
protected  void sleepFor(long timeInMilliseconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalSystemClock

public InternalSystemClock()
Method Detail

pauseFor

public void pauseFor(long timeInMilliseconds)
Pause execution for the requested delay. Throws a runtime exception if something goes wrong.

Specified by:
pauseFor in interface SystemClock

sleepFor

protected void sleepFor(long timeInMilliseconds)
                 throws InterruptedException
Throws:
InterruptedException

getCurrentTime

public org.joda.time.DateTime getCurrentTime()
Find the current system time.

Specified by:
getCurrentTime in interface SystemClock


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.