Ocean
Loading...
Searching...
No Matches
TestHighPerformanceTimer.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_TEST_TESTBASE_TEST_HIGH_PERFORMANCE_TIMER_H
9#define META_OCEAN_TEST_TESTBASE_TEST_HIGH_PERFORMANCE_TIMER_H
10
12
13namespace Ocean
14{
15
16namespace Test
17{
18
19namespace TestBase
20{
21
22/**
23 * This class implements a test for the HighPerformanceTimer class.
24 * @ingroup testbase
25 */
26class OCEAN_TEST_BASE_EXPORT TestHighPerformanceTimer
27{
28 public:
29
30 /**
31 * Invokes all high performance timer tests.
32 * @return True, if succeeded
33 */
34 static bool test();
35
36 /**
37 * Tests the precision of the high performance timer.
38 * @return True, if succeeded
39 */
40 static bool testPrecision();
41};
42
43/**
44 * This class implements a test for the HighPerformanceStatistic class.
45 * @ingroup testbase
46 */
47class OCEAN_TEST_BASE_EXPORT TestHighPerformanceStatistic
48{
49 public:
50
51 /**
52 * Tests all high performance statistic tests.
53 * @return True, if succeeded
54 */
55 static bool test();
56
57 /**
58 * Tests the reset function.
59 * @return True, if succeeded
60 */
61 static bool testReset();
62};
63
64}
65
66}
67
68}
69
70#endif // META_OCEAN_TEST_TESTBASE_TEST_HIGH_PERFORMANCE_TIMER_H
This class implements a test for the HighPerformanceStatistic class.
Definition TestHighPerformanceTimer.h:48
static bool testReset()
Tests the reset function.
static bool test()
Tests all high performance statistic tests.
This class implements a test for the HighPerformanceTimer class.
Definition TestHighPerformanceTimer.h:27
static bool test()
Invokes all high performance timer tests.
static bool testPrecision()
Tests the precision of the high performance timer.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15