Rice Pastry API

rice.environment.time.simple
Class SimpleTimeSource

java.lang.Object
  extended by rice.environment.time.simple.SimpleTimeSource
All Implemented Interfaces:
TimeSource

public class SimpleTimeSource
extends java.lang.Object
implements TimeSource

Uses System.currentTimeMillis() to generate time.

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye

Constructor Summary
SimpleTimeSource()
           
 
Method Summary
 long currentTimeMillis()
          Returns the System.currentTimeMillis();
 void sleep(long delay)
          DESCRIBE THE METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTimeSource

public SimpleTimeSource()
Method Detail

currentTimeMillis

public long currentTimeMillis()
Returns the System.currentTimeMillis();

Specified by:
currentTimeMillis in interface TimeSource
Returns:
DESCRIBE THE RETURN VALUE

sleep

public void sleep(long delay)
           throws java.lang.InterruptedException
DESCRIBE THE METHOD

Specified by:
sleep in interface TimeSource
Parameters:
delay - DESCRIBE THE PARAMETER
Throws:
java.lang.InterruptedException - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.