Motorcortex Core  version: 2.7.6
ct_time.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2017 VECTIONEER.
4  */
5 
6 #ifndef CONTAINER_CT_TIME_H
7 #define CONTAINER_CT_TIME_H
8 
9 #include <cstdint>
10 #include <ctime>
11 
12 namespace mcx::container {
13 
25 struct TaskTime {
26  struct timespec app_time;
27  struct timespec sys_time;
28  uint64_t cycle_time;
29  uint64_t nr_of_cycles;
30 };
31 
40 struct UserTime {
41  struct timespec ref_time;
42  uint64_t utilization_max;
43 };
44 
47 } // namespace mcx::container
48 
49 #endif // CONTAINER_CT_TIME_H
mcx::container::TaskTime::cycle_time
uint64_t cycle_time
Actual cycle time in microseconds.
Definition: ct_time.h:28
mcx::container::TaskTime
Internal time source.
Definition: ct_time.h:25
mcx::container::TaskTime::app_time
struct timespec app_time
A relative time from the start of the the task.
Definition: ct_time.h:26
mcx::container::TaskTime::sys_time
struct timespec sys_time
Current time and date.
Definition: ct_time.h:27
mcx::container::TaskTime::nr_of_cycles
uint64_t nr_of_cycles
Number of cycles from the start of the task.
Definition: ct_time.h:29
mcx::container::UserTime
External time source.
Definition: ct_time.h:40