17#if OT_TESTING_GLOBAL_AllTestsEnabled==true
18#define OT_TEST_Interval_Enabled OT_TESTING_GLOBAL_AllTestsEnabled
20#define OT_TEST_Interval_Enabled true
23#if OT_TESTING_GLOBAL_RuntimeTestingEnabled==true && OT_TEST_Interval_Enabled==true
27#define OT_TEST_Interval(___objectName, ___testCategory, ___testText) ot::RuntimeIntervalTest ___objectName; ___objectName.logOnDelete("[" ___testCategory "] " ___testText)
29#define OT_TEST_Interval(___objectName, ___testCategory, ___testText)
32#pragma warning(disable:4251)
43 void logCurrentInterval(
const std::string& _testName)
const;
46 long long currentInterval(
void)
const;
48 void logOnDelete(
const std::string& _message);
51 std::string niceIntervalString(
long long _ms)
const;
53 bool m_logOnDeleteEnabled;
54 std::string m_logOnDelete;
55 std::chrono::steady_clock::time_point m_startTime;
#define OT_CORE_API_EXPORT
Dll import.
Definition CoreAPIExport.h:8
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition RuntimeTests.h:36