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
Interface TimeSource

All Known Implementing Classes:
  DirectTimeSource, SimpleTimeSource

    public interface TimeSource

Virtualized clock for FreePastry. Can return the current time, or be blocked on. Usually acquired by calling environment.getTimeSource().

Author:
  Jeff Hoye

Method Summary
`long` | `currentTimeMillis()`
`void` | `sleep(long delay)` block for this many millis

Method Detail

### currentTimeMillis

    long currentTimeMillis()

  Returns:
    the current time in millis

### sleep

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

  block for this many millis

  Parameters:
    `delay` - the amount of time to sleep
  Throws:
    `java.lang.InterruptedException`

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.