org.openqa.selenium.support.ui
Interface Clock

All Known Implementing Classes:
SystemClock

public interface Clock

A simple encapsulation to allowing timing


Method Summary
 boolean isNowBefore(long endInMillis)
          Tests if a point in time occurs before the current time.
 long laterBy(long durationInMillis)
          Computes a point of time in the future.
 long now()
           
 

Method Detail

now

long now()
Returns:
The current time in milliseconds since epoch time.
See Also:
System.currentTimeMillis()

laterBy

long laterBy(long durationInMillis)
Computes a point of time in the future.

Parameters:
durationInMillis - The point in the future, in milliseconds relative to the current time.
Returns:
A timestamp representing a point in the future.

isNowBefore

boolean isNowBefore(long endInMillis)
Tests if a point in time occurs before the current time.

Parameters:
endInMillis - The timestamnp to check.
Returns:
Whether the given timestamp represents a point in time before the current time.


Copyright © 2013. All rights reserved.