Here you can find the source of megaCyclesToMilliseconds(long megaCycles)
static long megaCyclesToMilliseconds(long megaCycles)
//package com.java2s; public class Main { private static final double MCYCLES_PER_SECOND = 1200.0; static long megaCyclesToMilliseconds(long megaCycles) { return (long) (1000 * megaCycles / MCYCLES_PER_SECOND); }/*from w w w .ja va 2 s . com*/ }