X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=timer.h;h=76eb51dfab7883c2ef292500ad4b4db0b36d2aca;hb=9e11d2500f4a41afa2f293baee77f71b90652153;hp=2aaebce8e3dc0115ee61afbc25bda3bdc9a697e0;hpb=4da559091678dddb4c0392459ce41f2fa0821f72;p=apps%2Fagl-service-can-low-level.git diff --git a/timer.h b/timer.h index 2aaebce8..76eb51df 100644 --- a/timer.h +++ b/timer.h @@ -6,7 +6,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -17,16 +17,17 @@ #pragma once -typedef unsigned long (*TimeFunction)(); +//typedef unsigned long (*TimeFunction)(); /* Public: A frequency counting clock. - * * - * * frequency - the clock freuquency in Hz. - * * lastTime - the last time (in milliseconds since startup) that the clock - * * ticked. - * */ + * + * 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 + */ typedef struct { - float frequency; - unsigned long lastTick; - TimeFunction timeFunction; + float frequency; + unsigned long lastTick; + TimeFunction timeFunction; } FrequencyClock;