Here you can find the source of secondsToCycles(double secs, double hz)
public static long secondsToCycles(double secs, double hz)
//package com.java2s; public class Main { public static long secondsToCycles(double secs, double hz) { return (long) (hz * secs); }// w w w .j a v a 2s. c om }