X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Ftimer.hpp;h=7d0e466915b379c2d2ea72078e0d81eccc3af511;hb=836feaecd602e86ea6d954ae018a2d7bbc04aa7a;hp=798baa2654ccf7cdfc5dc0a044da168990629252;hpb=15250b2e51e8383a0df4b6e5a870c07e914d406d;p=apps%2Fagl-service-can-low-level.git diff --git a/src/timer.hpp b/src/timer.hpp index 798baa26..7d0e4669 100644 --- a/src/timer.hpp +++ b/src/timer.hpp @@ -19,15 +19,24 @@ #include -typedef unsigned long (*TimeFunction)(); +/* + * @brief return epoch in milliseconds + * + * @return long long int epoch in milliseconds + */ +typedef long long int (*TimeFunction)(); /** - * @brief: A frequency counting clock. + * @struct FrequencyClock + * @brief A frequency counting clock. * - * frequency - the clock frequency in Hz. - * last_time - the last time (in milliseconds since startup) that the clock + * @var FrequencyClock::frequency + * the clock frequency in Hz. + * @var FrequencyClock::last_time + * the last time (in milliseconds since startup) that the clock * ticked. - * time_function - a function returning current time + * @var FrequencyClock::time_function + * a function returning current time */ typedef struct { float frequency;