Java Nanosecond getNanos()

Here you can find the source of getNanos()

Description

get Nanos

License

Apache License

Declaration

public static String getNanos() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class Main {
    public static String getNanos() {
        NumberFormat nf = new DecimalFormat("000000000");
        String dateStr = nf.format(System.nanoTime());
        return dateStr;
    }// w  w  w  .j av a  2 s  .  c om
}

Related

  1. getNanosUSEasternStartOfDay(String date)