summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-09-25 14:28:31 -0700
committerWilliam A. Kennington III <wak@google.com>2018-09-26 12:18:50 -0700
commitfa9431d52f37bf51a2aa0d3a85eaaf027db8488f (patch)
treec90245c7f7f03a8dffcd93d710a989c69960d534 /src
parent406b86e47e982d4ae5d9fa9f39476cb81f41d449 (diff)
downloadsdeventplus-fa9431d52f37bf51a2aa0d3a85eaaf027db8488f.tar.gz
sdeventplus-fa9431d52f37bf51a2aa0d3a85eaaf027db8488f.zip
example: Add a repeating timer sample
Tested: Ran through unit test suite and manually executed the example program to make sure it works as expected. Change-Id: I77cffdd038df4eab774f0d162f49273650638ad6 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/sdeventplus/utility/timer.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sdeventplus/utility/timer.hpp b/src/sdeventplus/utility/timer.hpp
index 8865ba1..96c5b6b 100644
--- a/src/sdeventplus/utility/timer.hpp
+++ b/src/sdeventplus/utility/timer.hpp
@@ -18,6 +18,8 @@ namespace utility
* whether or not it has expired since creation or since the last
* clearExpired() or restart(). The concept of expiration is
* orthogonal to the callback mechanism and can be ignored.
+ *
+ * See example/heartbeat_timer.cpp for usage examples.
*/
template <ClockId Id>
class Timer
OpenPOWER on IntegriCloud