Here you can find the source of nanoSecondsToSeconds(final long nanoSeconds)
Parameter | Description |
---|---|
nanoSeconds | as input. |
public static long nanoSecondsToSeconds(final long nanoSeconds)
//package com.java2s; //License from project: Open Source License public class Main { private static final int NANO_TIME_DIVIDER = 1000 * 1000 * 1000; /**// w w w . j a v a 2 s .com * Reduces nanosecond time to seconds. * * @param nanoSeconds as input. * @return nanoSeconds to seconds. */ public static long nanoSecondsToSeconds(final long nanoSeconds) { return nanoSeconds / NANO_TIME_DIVIDER; } }