Java Duration to toTicks(Duration duration)

Here you can find the source of toTicks(Duration duration)

Description

to Ticks

License

Open Source License

Declaration

public static long toTicks(Duration duration) 

Method Source Code


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

import java.time.Duration;

public class Main {
    public static long toTicks(Duration duration) {
        return duration.toMillis() / 50;
    }/*from   w  ww  . j av a  2 s  .  co  m*/
}

Related

  1. durationToString(Duration d)
  2. toDuration(Long unixTime)
  3. toDuration(String durationString)
  4. toMicro(Duration duration)
  5. toSeconds(final Duration time)
  6. toUnit(TemporalUnit unit, Duration duration)