Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.environment.time.simple
Class SimpleTimeSource

    java.lang.Object
      rice.environment.time.simple.SimpleTimeSource

All Implemented Interfaces:
  Destructable, TimeSource

    public class SimpleTimeSource

extends java.lang.Object
implements TimeSource

Uses System.currentTimeMillis() to generate time.

Author:
  Jeff Hoye

Constructor Summary
`SimpleTimeSource()`

Method Summary
`long` | `currentTimeMillis()` Returns the System.currentTimeMillis();
`void` | `destroy()`
`void` | `sleep(long delay)` block for this many millis

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:
    the current time in millis

### sleep

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

  Description copied from interface: `TimeSource`
  block for this many millis

  Specified by:
    `sleep` in interface `TimeSource`
  Parameters:
    `delay` - the amount of time to sleep
  Throws:
    `java.lang.InterruptedException`

### destroy

    public void destroy()

  Specified by:
    `destroy` in interface `Destructable`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.