Here you can find the source of toTicks(Duration duration)
public static long toTicks(Duration duration)
//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*/ }