Skip to content

Commit a41823a

Browse files
authored
Merge pull request #13965 from adbridge/master
Clarify the time units stated in the delay and period function headers for events
2 parents 383818c + 8ab6290 commit a41823a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

events/include/events/Event.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ class Event<void(ArgTs...)> {
116116

117117
/** Configure the delay of an event
118118
*
119-
* @param d Millisecond delay before dispatching the event
119+
* @param d Delay (in milliseconds) before dispatching the event, expressed as a Chrono duration.
120+
* E.g. delay(50ms)
120121
*/
121122
void delay(duration d)
122123
{
@@ -138,7 +139,8 @@ class Event<void(ArgTs...)> {
138139

139140
/** Configure the period of an event
140141
*
141-
* @param p Millisecond period for repeatedly dispatching an event
142+
* @param p Period (in milliseconds) for repeatedly dispatching an event, expressed as a Chrono duration.
143+
* E.g. period(200ms)
142144
*/
143145
void period(duration p)
144146
{

0 commit comments

Comments
 (0)