Java Duration Format formatDuration(long elapsed)

Here you can find the source of formatDuration(long elapsed)

Description

format Duration

License

Open Source License

Declaration

static public String formatDuration(long elapsed) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.Duration;

public class Main {
    static public String formatDuration(long elapsed) {
        return Duration.ofMillis(elapsed).toString();
    }/*w ww  .jav  a2 s.c  o m*/
}

Related

  1. formatDuration(long duration, boolean displayMilliseconds)
  2. formatDuration(long duration, boolean simplify, boolean includeMillies)
  3. formatDuration(long durationInMs)
  4. formatDuration(long durationMillis)
  5. formatDuration(long durationSec)
  6. formatDuration(long elapsedSec)
  7. formatDuration(Long input)
  8. formatDuration(long milis)
  9. formatDuration(long millis)