Java Millisecond Format millisecondsPerTick(final int tps)

Here you can find the source of millisecondsPerTick(final int tps)

Description

Change tps to number of milliseconds per tick, 1000/tps.

License

Open Source License

Parameter

Parameter Description
tps tick per second.

Return

number of milliseconds per tick.

Declaration

public static int millisecondsPerTick(final int tps) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/* w  w  w.  j a v  a 2  s .co  m*/
     * Change tps to number of milliseconds per tick, 1000/tps.
     *
     * @param tps tick per second.
     *
     * @return number of milliseconds per tick.
     */
    public static int millisecondsPerTick(final int tps) {
        return 1000 / tps;
    }
}

Related

  1. millis2samples(long ms, double sampleRate)
  2. millis2seconds(long millis)
  3. millis2String(long n)
  4. millisAsTicks(int ms)
  5. milliseconds2String(long millis)
  6. milliSecondsSince(long startMillis)
  7. milliSecondsToFormatedString(long timeMillis)
  8. millisecondsToToTimeFormat(long inMs)
  9. milliSekundsToTime(long millisecond)