xref: /haiku/src/tests/servers/app/benchmark/RandomLineTest.h (revision 7749d0bb0c358a3279b1b9cc76d8376e900130a5)
1 /*
2  * Copyright (C) 2008-2009 Stephan Aßmus <superstippi@gmx.de>
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef RANDOM_LINE_TEST_H
6 #define RANDOM_LINE_TEST_H
7 
8 #include <Rect.h>
9 
10 #include "Test.h"
11 
12 class RandomLineTest : public Test {
13 public:
14 								RandomLineTest();
15 	virtual						~RandomLineTest();
16 
17 	virtual	void				Prepare(BView* view);
18 	virtual	bool				RunIteration(BView* view);
19 	virtual	void				PrintResults(BView* view);
20 
21 	static	Test*				CreateTest();
22 
23 private:
24 	bigtime_t					fTestDuration;
25 	bigtime_t					fTestStart;
26 	uint64						fLinesRendered;
27 	uint32						fLinesPerIteration;
28 
29 	uint32						fIterations;
30 	uint32						fMaxIterations;
31 
32 	BRect						fViewBounds;
33 };
34 
35 #endif // RANDOM_LINE_TEST_H
36