Class TimeUtils


  • public final class TimeUtils
    extends java.lang.Object
    • Constructor Detail

      • TimeUtils

        public TimeUtils()
    • Method Detail

      • micro2second

        public static double micro2second​(long micro)
      • micro2nano

        public static long micro2nano​(long micro)
      • micro2milli

        public static int micro2milli​(long micro)
      • nano2milli

        public static int nano2milli​(long nano)
      • milli2nano

        public static long milli2nano​(long milli)
      • nano2sec

        public static double nano2sec​(long nano)
      • micro2sec

        public static double micro2sec​(long micro)
      • milli2sec

        public static double milli2sec​(int milli)
      • milli2sec

        public static double milli2sec​(long milli)
      • audioTimeSec2BufferPosition

        public static int audioTimeSec2BufferPosition​(double timeSec)
      • audioTimeSec2BufferPositionBlocked

        public static int audioTimeSec2BufferPositionBlocked​(double timeSec,
                                                             int blockSize)
      • audioBufferPosition2TimeNanoSec

        public static long audioBufferPosition2TimeNanoSec​(int posBytes)
      • milli2nanoWithSpeed

        public static long milli2nanoWithSpeed​(int milli,
                                               float speedValue)
      • getCorrectedTime

        public static long getCorrectedTime​(long time,
                                            float speedValue)