diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2023-03-02 15:49:22 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-04-12 13:39:37 +0300 |
commit | 5fd47520a2727b02d74e4b1e05b5e7f2048562bb (patch) | |
tree | e72d0f479a3f2123af73e56f58fe1fe5e9907971 /include | |
parent | 90ea0e5f734484e4d26c927f4d18ddd10e4a6170 (diff) |
api: timer: clarify periodic first_tick documentation
Clarify that zero first_tick means that the first expiration time is
one period after the current time, not at the current time.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Shijith Thotton <sthotton@marvell.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/odp/api/spec/timer_types.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/odp/api/spec/timer_types.h b/include/odp/api/spec/timer_types.h index d61992fba..fd23bdeca 100644 --- a/include/odp/api/spec/timer_types.h +++ b/include/odp/api/spec/timer_types.h @@ -476,9 +476,10 @@ typedef struct odp_timer_start_t { typedef struct odp_timer_periodic_start_t { /** First expiration time * - * The first expiration time in absolute timer ticks. When zero, timer expiration starts - * from the current time. After the first expiration, timer expiration continues with the - * defined frequency. The tick value must be within one timer period from the current time. + * The first expiration time in absolute timer ticks. When zero, the first expiration time + * is one period after the current time. After the first expiration, timer expiration + * continues with the defined frequency. The tick value must be within one timer period + * from the current time. */ uint64_t first_tick; |