summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/llframetimer_test.cpp
diff options
context:
space:
mode:
authorcallum_linden <none@none>2014-12-22 14:19:19 -0800
committercallum_linden <none@none>2014-12-22 14:19:19 -0800
commita54188cb3d215db94e0392cb33e7ef999963335a (patch)
tree4c90b18cd2081ead87ba8deeac8eec5e2722a31a /indra/llcommon/tests/llframetimer_test.cpp
parent9635923d5587588e9db71685234265e1f78856cf (diff)
Investigative check-in to see if system clock() function can be used to time ms_sleep() calls and adjust expectations accordingly
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;