Code example for TimeUnit

Methods: toMillis

0
    public long getMicros() { 
        return micros(); 
    } 
 
    public long millis() { 
        return timeUnit.toMillis(duration);
    } 
 
    public long getMillis() { 
        return millis(); 
    } 
 
    public long seconds() { 
        return timeUnit.toSeconds(duration);
    } 
 
    public long getSeconds() { 
        return seconds(); 
    } 
 
    public long minutes() {