Commit | Line | Data |
---|---|---|
e68f847b PG |
1 | /* |
2 | * Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com. | |
3 | * | |
4 | * This program is free software: you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation, either version 3 of the License, or | |
7 | * (at your option) any later version. | |
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 | ||
ad9f1fb6 PG |
18 | #ifndef TICKS_H |
19 | #define TICKS_H | |
20 | ||
21 | /// ***** Public Methods ***** | |
22 | ||
8baa4b2f PG |
23 | typedef long int MICRO; |
24 | ||
ad9f1fb6 | 25 | // returns the current seconds from program start |
8baa4b2f | 26 | MICRO tickCountSec(); |
ad9f1fb6 PG |
27 | |
28 | // returns the current milliseconds from program start | |
8baa4b2f | 29 | MICRO tickCountMilli(); |
ad9f1fb6 PG |
30 | |
31 | // returns the current microseconds from program start | |
8baa4b2f | 32 | MICRO tickCountMicro(); |
ad9f1fb6 | 33 | |
ad9f1fb6 | 34 | #endif // TICKS_H |