public final class TimeSpan extends Object
| Constructor and Description |
|---|
TimeSpan(long value,
TimeResolution resolution) |
| Modifier and Type | Method and Description |
|---|---|
TimeResolution |
getResolution() |
long |
getValue() |
String |
toString() |
public TimeSpan(long value,
TimeResolution resolution)
value - time durationresolution - time resolution, cannot be nullTimeResolutionpublic long getValue()
public TimeResolution getResolution()
Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.