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
13
14namespace Ocean
15{
16
17namespace Test
18{
19
20namespace TestBase
21{
22
23/**
24 * This class implements a test for the HighPerformanceTimer class.
25 * @ingroup testbase
26 */
27class OCEAN_TEST_BASE_EXPORT TestHighPerformanceTimer
28{
29 public:
30
31 /**
32 * Invokes all high performance timer tests.
33 * @param selector The test selector to filter tests
34 * @return True, if succeeded
35 */
36 static bool test(const TestSelector& selector = TestSelector());
37
38 /**
39 * Tests the precision of the high performance timer.
40 * @return True, if succeeded
41 */
42 static bool testPrecision();
43};
44
45/**
46 * This class implements a test for the HighPerformanceStatistic class.
47 * @ingroup testbase
48 */
49class OCEAN_TEST_BASE_EXPORT TestHighPerformanceStatistic
50{
51 public:
52
53 /**
54 * Tests all high performance statistic tests.
55 * @param selector The test selector to filter tests
56 * @return True, if succeeded
57 */
58 static bool test(const TestSelector& selector = TestSelector());
59
60 /**
61 * Tests the reset function.
62 * @return True, if succeeded
63 */
64 static bool testReset();
65};
66
67}
68
69}
70
71}
72
73#endif // META_OCEAN_TEST_TESTBASE_TEST_HIGH_PERFORMANCE_TIMER_H
This class implements a test for the HighPerformanceStatistic class.
Definition TestHighPerformanceTimer.h:50
static bool testReset()
Tests the reset function.
static bool test(const TestSelector &selector=TestSelector())
Tests all high performance statistic tests.
This class implements a test for the HighPerformanceTimer class.
Definition TestHighPerformanceTimer.h:28
static bool test(const TestSelector &selector=TestSelector())
Invokes all high performance timer tests.
static bool testPrecision()
Tests the precision of the high performance timer.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15