Interface TimingProvider

  • All Known Implementing Classes:
    DefaultTimingProvider

    public interface TimingProvider
    Interface providing timing related functionality.
    • Method Detail

      • provideTimestampInMilliseconds

        long provideTimestampInMilliseconds()
        Provide the current timestamp in milliseconds.
      • provideTimestampInNanoseconds

        long provideTimestampInNanoseconds()
        Provide the current timestamp in nanoseconds.
      • sleep

        void sleep​(long milliseconds)
            throws java.lang.InterruptedException
        Sleep given amount of milliseconds.
        Throws:
        java.lang.InterruptedException - When the sleep call gets interrupted.