Java Second Convert secondsToTicks(double x)

Here you can find the source of secondsToTicks(double x)

Description

standard MC ratio

License

LGPL

Declaration

public static int secondsToTicks(double x) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static final int TICKS_PER_SEC = 20;

    /** standard MC ratio **/
    public static int secondsToTicks(double x) {
        return (int) x * TICKS_PER_SEC;
    }/*ww  w  . j  a  v a2  s  . c om*/
}

Related

  1. SecondsToString(long seconds)
  2. secondsToString(long seconds)
  3. secondsToString(long time)
  4. secondsToStringWithUnits(double value)
  5. secondsToTicks(double seconds)
  6. secondsToTicks(float seconds)
  7. secondsToTicks(int seconds)
  8. secondsToTime(double seconds)
  9. secondsToTime(int seconds)