timer - An object that may be signaled at some point in the future
A timer is used to wait until a specified point in time has occurred or the timer has been canceled.
A given timer can be used over and over.
The typical lifecycle is:
- wait for the timer to be signaled
- optionally reset and reuse the timer (i.e. goto #2)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-10-26.