public class DelayInputStreamTests extends Object
DelayedInputStream.
The test measures the actualy real-time delay introduced by
DelayedInputStream and verifies it against the provided value. This
is done for several orders of magnitude. The error is given in percent.
The theoretical lower bound for delays is the performance of
RealTimeTickSource (see RealTimeTickSourceTests).
For very low values (< 10000 ns), the error is high because the overhead
involved into the generation of the delay is higher than the delay itself.
The error can be influenced by changing the epsilon value of
DelayCalculator.| Constructor and Description |
|---|
DelayInputStreamTests() |
public static void main(String[] args) throws IOException
IOExceptionpublic static void run()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.