Use the AMS_LOWMEM define to indicate memory size as the .lds files do in config...
[kugel-rb.git] / apps / plugins / clock / clock_counter.h
blob46563e9eb781cfbe617b518637a48bfd464818a4
1 #ifndef _CLOCK_MESSAGE_
2 #define _CLOCK_MESSAGE_
3 #include "clock.h"
4 #include "plugin.h"
5 #include "lib/picture.h"
7 struct counter{
8 int ticks_at_last_unpause;/* to count the time from last pause to now */
9 int ticks_since_started;/* accumulated time */
10 bool paused;
13 void counter_init(struct counter* counter);
14 void counter_toggle(struct counter* counter);
15 #define counter_reset(counter) counter_init(counter)
16 void counter_pause(struct counter* counter, bool paused);
17 void counter_get_elapsed_time(struct counter* counter, struct time* elapsed_time);
19 #endif /* _CLOCK_MESSAGE_ */