Java Second Convert secondsToTicks(float seconds)

Here you can find the source of secondsToTicks(float seconds)

Description

seconds To Ticks

License

LGPL

Declaration

public static int secondsToTicks(float seconds) 

Method Source Code

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

public class Main {
    public static int secondsToTicks(int seconds) {
        return seconds * 20;
    }//from   w w w . j a  v  a 2s  .c  o  m

    public static int secondsToTicks(float seconds) {
        return (int) seconds * 20;
    }
}

Related

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