public interface Chronograph
Modifier and Type | Method and Description |
---|---|
RelativeTime |
getEpochOffset()
Determines the time on the UTC clock when this chronograph was
zero.
|
RelativeTime |
getQueryPrecision()
Obtain the precision with which time can be read, i.e., the nominal
interval between ticks.
|
RelativeTime |
getQueryPrecision(RelativeTime dest)
Obtain the precision with which time can be read, i.e., the nominal
interval between ticks.
|
AbsoluteTime |
getTime()
Determines the current time.
|
AbsoluteTime |
getTime(AbsoluteTime dest)
Obtain the current time.
|
RelativeTime getEpochOffset() throws UnsupportedOperationException, UninitializedStateException
UnsupportedOperationException
- when the chronograph does not have
the concept of date.UninitializedStateException
- when UTC time is not yet available.RelativeTime
object in the current
execution context with the realtime clock as its chronograph
and containing time when this chronograph was zero.AbsoluteTime getTime()
AbsoluteTime
in the
current allocation context, representing the current time.
The returned object has this
its chronograph.AbsoluteTime getTime(AbsoluteTime dest)
AbsoluteTime
is changed at some time between the invocation of the
method and the return of the method. This method will return an absolute
time value that represents this chronograph's notion of the absolute time.
For chronographs that do not measure calendar time, this absolute time may
not represent a wall clock time.dest
- The instance of AbsoluteTime
object which will be
updated in place.AbsoluteTime
passed as parameter, or a new
object when dest
is null
. The returned object
represents the current time and is associated with this
chronograph.RelativeTime getQueryPrecision()
getQueryPrecision(RelativeTime)
with null
as an argument.RelativeTime getQueryPrecision(RelativeTime dest)
dest
- is a time object in which to return the results.dest
, when dest
is not
null
, or in a newly created object otherwise.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.