Package-level declarations

Types

Link copied to clipboard
interface Clock

Exposes the current epoch time that is useful for date related time operations. This API is tied to a user's clock, so it should not be used when monotonicity is required. It is also not guaranteed to be as high resolution as needed for precise time operations.

Link copied to clipboard
interface Timer

Provides a precise elapsed time that is useful for relative time measurements that are not affected by the user's clock (i.e. time rollbacks). The resolution of this time is expected to be higher than Clock.epoch.