Dali 3D User Interface Engine
frame-time-stats.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_ADAPTOR_FRAME_TIME_STATS_H__
2 #define __DALI_INTERNAL_ADAPTOR_FRAME_TIME_STATS_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // INTERNAL INCLUDES
24 
25 
26 namespace Dali
27 {
28 
29 namespace Internal
30 {
31 
32 namespace Adaptor
33 {
34 
41 {
46 
51 
56  void StartTime( const FrameTimeStamp& timeStamp );
57 
62  void EndTime( const FrameTimeStamp& timeStamp );
63 
67  void Reset();
68 
72  float GetMaxTime() const;
73 
77  float GetMinTime() const;
78 
82  float GetTotalTime() const;
83 
87  unsigned int GetRunCount() const;
88 
95  void CalculateMean( float& meanOut, float& standardDeviationOut ) const;
96 
97 private:
98 
103  {
106  };
107 
110 
111  unsigned int mMin;
112  unsigned int mMax;
113  unsigned int mTotal;
114  unsigned int mRunCount;
117  bool mMinMaxTimeSet:1;
118 
119 };
120 
121 } // namespace Adaptor
122 
123 } // namespace Internal
124 
125 } // namespace Dali
126 
127 #endif // __DALI_INTERNAL_ADAPTOR_FRAME_TIME_STATS_H__
128 
Dali Docs Home
Read more about Dali