-
Notifications
You must be signed in to change notification settings - Fork 1
/
CumulativeStatistics.cpp
44 lines (35 loc) · 1.05 KB
/
CumulativeStatistics.cpp
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
/**************************************************************************
** Code written by Hesam Gholami.
**
** Email: [email protected]
** Website: http://hesam.org
**
** This file created in 12.
**************************************************************************/
#include "CumulativeStatistics.hpp"
unsigned int CumulativeStatistics::busyTimeLoaders = 0;
unsigned int CumulativeStatistics::busyTimeScale = 0;
CumulativeStatistics::CumulativeStatistics()
{
}
void CumulativeStatistics::appendLoadersBusyTime(unsigned int time)
{
CumulativeStatistics::busyTimeLoaders += time;
}
void CumulativeStatistics::appendScaleBusyTime(unsigned int time)
{
CumulativeStatistics::busyTimeScale += time;
}
unsigned int CumulativeStatistics::getLoadersBusyTime()
{
return CumulativeStatistics::busyTimeLoaders;
}
unsigned int CumulativeStatistics::getScaleBusyTime()
{
return CumulativeStatistics::busyTimeScale;
}
void CumulativeStatistics::clear()
{
CumulativeStatistics::busyTimeLoaders = 0;
CumulativeStatistics::busyTimeScale = 0;
}