net.tomp2p.utils
Interface Timing

All Known Implementing Classes:
TimingImpl

public interface Timing

The timing class for TomP2P. This class was introduced since SimGrid uses different timings. While the normal operation uses System.currentTimeMillis and Thread.sleep, the SimGrid integration uses other implementations.

Author:
Thomas Bocek

Method Summary
 long currentTimeMillis()
           
 void sleep(int millis)
          Sleeps with throwing an InterruptedException
 void sleepUninterruptibly(int millis)
          Sleeps without throwing an InterruptedException
 

Method Detail

currentTimeMillis

long currentTimeMillis()
Returns:
the time in millis for this system

sleep

void sleep(int millis)
           throws InterruptedException
Sleeps with throwing an InterruptedException

Parameters:
millis - The time to sleep in milliseconds
Throws:
InterruptedException - If interrputed is called

sleepUninterruptibly

void sleepUninterruptibly(int millis)
Sleeps without throwing an InterruptedException

Parameters:
millis - The time to sleep in milliseconds


Copyright © 2013. All Rights Reserved.