List of utility methods to do Time Convert to
double | timeToRad(int time) time To Rad return ((double) (time + 1350) / TIME_CONV_CONST) * Math.PI; |
float | timeToTick(float time, float speed) time To Tick return time * 4000.0f * speed;
|
Long | timeToTicks(Long time) time To Ticks return Math.max(1, (time / 50));
|
int | timeToTimestamp(long currentTimeMsecs) time To Timestamp int time = (int) (currentTimeMsecs >> 8); if (time < 0) { time &= 0x7FFFFFFF; return time; |