X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Ftimer.hpp;h=798baa2654ccf7cdfc5dc0a044da168990629252;hb=cddc9c28e3e1a242e55f68c9971d0710ada30e9f;hp=76eb51dfab7883c2ef292500ad4b4db0b36d2aca;hpb=860d6bd4a829ee5aca50b93122474c9bf68fff9d;p=apps%2Fagl-service-can-low-level.git diff --git a/src/timer.hpp b/src/timer.hpp index 76eb51df..798baa26 100644 --- a/src/timer.hpp +++ b/src/timer.hpp @@ -17,17 +17,20 @@ #pragma once -//typedef unsigned long (*TimeFunction)(); +#include -/* Public: A frequency counting clock. +typedef unsigned long (*TimeFunction)(); + +/** + * @brief: A frequency counting clock. * * frequency - the clock frequency in Hz. * last_time - the last time (in milliseconds since startup) that the clock * ticked. - * time_function - a function returning current time in ms + * time_function - a function returning current time */ typedef struct { float frequency; unsigned long lastTick; TimeFunction timeFunction; -} FrequencyClock; +} FrequencyClock; \ No newline at end of file