Package lejos.utility
Class Delay
- java.lang.Object
-
- lejos.utility.Delay
-
public class Delay extends java.lang.ObjectSimple collection of time delay routines that are non interruptable.- Author:
- andy
-
-
Constructor Summary
Constructors Constructor Description Delay()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmsDelay(long period)Wait for the specified number of milliseconds.static voidnsDelay(long period)Wait for the specified number of nanoseconds.static voidusDelay(long period)Wait for the specified number of microseconds.
-
-
-
Method Detail
-
msDelay
public static void msDelay(long period)
Wait for the specified number of milliseconds. Delays the current thread for the specified period of time. Can not be interrupted (but it does preserve the interrupted state).- Parameters:
period- time to wait in ms
-
usDelay
public static void usDelay(long period)
Wait for the specified number of microseconds. Delays the current thread for the specified period of time. Can not be interrupted.- Parameters:
period- time to wait in us
-
nsDelay
public static void nsDelay(long period)
Wait for the specified number of nanoseconds. Delays the current thread for the specified period of time. Can not be interrupted.- Parameters:
period- time to wait in ns
-
-