public class Bridger extends Object
Note: Should only be used, and with caution, when there is no other option than to bridge a certain period of time.
| Constructor and Description |
|---|
Bridger() |
| Modifier and Type | Method and Description |
|---|---|
long |
bridge(int milliseconds)
Bridges at least the specified period of time in milliseconds.
|
long |
bridge(int period,
TimeUnit unit)
Bridges at least the specified period of time in the given
TimeUnit. |
public final long bridge(int milliseconds)
The current thread doesn't sleep during the period but remains busy.
public final long bridge(int period,
TimeUnit unit)
TimeUnit.
The actually bridged period may be longer than specified, but exceeding it by more than 100 microseconds
should be extremely unlikely.
Ultimately, however, this depends on the executing machine and its current workload.
The current thread doesn't sleep during the period but remains busy.
Copyright © 2025 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.