OSAPI  0.29
Open System API
clock_type_chrono.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: Define a chrono type
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_CLOCK_TYPE_CHRONO_H_
11 #define OSAPI_CLOCK_TYPE_CHRONO_H_
12 
13 // *****************************************************************************************
14 //
15 // Section: Import headers
16 //
17 // *****************************************************************************************
18 
19 // System headers
20 #include <stdint.h>
21 
22 // Import OSAPI headers
23 #include "general/general_defs.h"
24 #include "common/types/common_type_time.h"
25 
26 // Include own headers
27 
28 
29 // *****************************************************************************************
30 //
31 // Section: Constants
32 //
33 // *****************************************************************************************
34 
35 #define OSAPI_CLOCK_CHRONO_NONE OSAPI_SANITY_NONE // No time yet
36 #define OSAPI_CLOCK_CHRONO_STARTED OSAPI_SANITY_BEGIN // Start time available
37 #define OSAPI_CLOCK_CHRONO_STOPPED OSAPI_SANITY_END // Delta time available
38 
39 // *****************************************************************************************
40 //
41 // Section: Type definitions
42 //
43 // *****************************************************************************************
44 
45 
46 
49 {
51  uint8_t magic;
52 };
53 
54 typedef struct osapi_clock_chrono_S t_chrono;
55 
56 
57 
58 
59 
60 #endif /* OSAPI_CLOCK_TYPE_CHRONO_H_ */
osapi_clock_chrono_S::value
t_time value
Time value.
Definition: clock_type_chrono.h:50
osapi_clock_chrono_S::magic
uint8_t magic
A magic constant to verify if there as a start before computing time deltas.
Definition: clock_type_chrono.h:51
osapi_time_S
Structure supporting a time date.
Definition: common_type_time.h:65
osapi_clock_chrono_S
Structure supporting a chrono type.
Definition: clock_type_chrono.h:48