blob: 21393816e7b0182a6313b3d1da36519dbfc5a2a2 (
plain)
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
|
#ifndef STATICPAGEBENCHMARK_H
#define STATICPAGEBENCHMARK_H
#include "timedemobenchmark.h"
#include <MNamespace>
/**
* Static page benchmark simply shows a given page and then waits five seconds.
* The page is shown in angle given to the constructor.
*/
class StaticPageBenchmark : public TimedemoBenchmark
{
Q_OBJECT
public:
StaticPageBenchmark(MApplicationPage *applicationPage, Timedemo *timedemo, M::OrientationAngle targetOrientationAngle);
QString name();
void start();
private slots:
void stabilizeFps();
void waitPageDuration();
void terminateBenchmark();
private:
M::OrientationAngle targetOrientationAngle;
};
#endif // STATICPAGEBENCHMARK_H
|