rockbox/apps/plugins/clock/clock_counter.h
Björn Stenberg c6b3d38a15 New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles.
Many #include lines adjusted to conform to the new standards.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19146 a1c6a512-1295-4272-9138-f99709370657
2008-11-20 11:27:31 +00:00

19 lines
592 B
C

#ifndef _CLOCK_MESSAGE_
#define _CLOCK_MESSAGE_
#include "clock.h"
#include "plugin.h"
#include "lib/picture.h"
struct counter{
int ticks_at_last_unpause;/* to count the time from last pause to now */
int ticks_since_started;/* accumulated time */
bool paused;
};
void counter_init(struct counter* counter);
void counter_toggle(struct counter* counter);
#define counter_reset(counter) counter_init(counter)
void counter_pause(struct counter* counter, bool paused);
void counter_get_elapsed_time(struct counter* counter, struct time* elapsed_time);
#endif /* _CLOCK_MESSAGE_ */