-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtools.h
46 lines (37 loc) · 862 Bytes
/
tools.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Copyright (C) 2013-2015 Atmel Corporation.
*
* This file is licensed under the terms of the Atmel LIMITED License Agreement
* as written in the COPYING file that is delivered in the project root directory.
*
* DISCLAIMER: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
* See the COPYING license file for more details.
*/
#ifndef TOOLS_H
#define TOOLS_H
/**
* @file tools.h
* @brief Colection of functions to perform common tasks
*/
/**
* @brief
* Tools
* */
class Tools
{
public:
Tools();
virtual ~Tools();
// Stores CPU usage
float cpu_usage[4];
/**
* Updates the CPU Usage
* The value is stored in the public cpu_usage array
**/
void updateCpuUsage();
private:
// For CPU usage
float total_cpu_last_time[4];
float work_cpu_last_time[4];
};
#endif // TOOLS_H