Java Second Parse centisecondsPerTick(final int tps)

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

Description

Change tps to number of centiseconds per tick, 100/tps.

License

Open Source License

Parameter

Parameter Description
tps tick per second.

Return

number of centiseconds per tick.

Declaration

public static int centisecondsPerTick(final int tps) 

Method Source Code

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

public class Main {
    /**/*  ww w .ja va2s  . c om*/
     * Change tps to number of centiseconds per tick, 100/tps.
     *
     * @param tps tick per second.
     *
     * @return number of centiseconds per tick.
     */
    public static int centisecondsPerTick(final int tps) {
        return 100 / tps;
    }
}

Related

  1. parseHHMMSSToSeconds(String txt)
  2. parseSeconds(String value, int defaultValue)
  3. parseTimeStringAsSeconds(String timeString)
  4. parseW3CDateWithFractionalSeconds(String dateString)