1: /*
2: * Guitar-ZyX(tm)::MasterControlProgram - portable guitar F/X controller
3: * Copyright (C) 2009 Douglas McClendon
4: *
5: * This program is free software: you can redistribute it and/or modify
6: * it under the terms of the GNU General Public License as published by
7: * the Free Software Foundation, version 3 of the License.
8: *
9: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program. If not, see <http://www.gnu.org/licenses/>.
16: */
17: /*
18: #############################################################################
19: #############################################################################
20: #
21: # gzmcpc (nds.arm9): time header file
22: #
23: #############################################################################
24: ##
25: ## Copyright 2008-2009 Douglas McClendon <dmc AT filteredperception DOT org>
26: ##
27: #############################################################################
28: #############################################################################
29: #
30: */
31:
32: #ifndef _NDS_CLIENT_TIME_H
33: #define _NDS_CLIENT_TIME_H
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45: typedef struct time_val_tag {
46: long s;
47: long ms;
48: } time_val;
49:
50:
51:
52:
53: int time_val_compare(time_val time_a, time_val time_b);
54:
55: time_val time_val_add_ms(time_val time_a, int ms);
56:
57: long ms_since(time_val time);
58:
59: void gzmcpc_init_time(void);
60:
61: void ms_timer_handler(void);
62:
63:
64:
65:
66: extern char timer_num_ticks;
67:
68: extern time_val num_ticks;
69:
70:
71: #endif // _NDS_CLIENT_TIME_H
72: