summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/llframetimer_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/tests/llframetimer_test.cpp')
-rwxr-xr-xindra/llcommon/tests/llframetimer_test.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llcommon/tests/llframetimer_test.cpp b/indra/llcommon/tests/llframetimer_test.cpp
index 46fc4ce93a..c36b6a1c42 100755
--- a/indra/llcommon/tests/llframetimer_test.cpp
+++ b/indra/llcommon/tests/llframetimer_test.cpp
@@ -83,7 +83,13 @@ namespace tut
}
template<> template<>
void frametimer_object_t::test<3>()
- {
+ {
+ clock_t t1 = clock();
+ ms_sleep(200);
+ clock_t t2 = clock();
+ clock_t elapsed = t2 - t1 + 1;
+ std::cout << "Note: using clock(), ms_sleep() actually took " << (long)elapsed << "ms" << std::endl;
+
F64 seconds_since_epoch = LLFrameTimer::getTotalSeconds();
seconds_since_epoch += 2.0;
LLFrameTimer timer;