Java Time Convert to timeToTicks(Long time)

Here you can find the source of timeToTicks(Long time)

Description

time To Ticks

License

Open Source License

Declaration

public static Long timeToTicks(Long time) 

Method Source Code

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

public class Main {
    public static Long timeToTicks(Long time) {
        //1000 ms = 20 ticks
        return Math.max(1, (time / 50));
    }//from  w ww  .  j  ava 2  s  .c o  m
}

Related

  1. timeToJgo(long milliSeconds)
  2. timeToLong(String inputStr)
  3. timeToMs(int day, int hour, int min, int sec)
  4. timeToRad(int time)
  5. timeToTick(float time, float speed)
  6. timeToTimestamp(long currentTimeMsecs)