Add tests that show the timing differences between the Glib/mm based timeouts

This shows that PBD::Timer is pretty much identical in terms of timing and CPU
usage as Glib TimeoutSources.

They also show the differences on Windows when setting the minimum Multimedia Timer
resolution using timeBeginPeriod
This commit is contained in:
Tim Mayberry 2014-12-22 12:44:12 +07:00
parent b959b3fb87
commit 1da30faf7f
4 changed files with 704 additions and 0 deletions

View file

@ -841,6 +841,7 @@ def configure(conf):
# needed for at least libsmf
conf.check_cc(function_name='htonl', header_name='winsock2.h', lib='ws2_32')
conf.env.append_value('LIB', 'ws2_32')
conf.env.append_value('LIB', 'winmm')
# needed for mingw64 packages, not harmful on normal mingw build
conf.env.append_value('LIB', 'intl')
conf.check_cc(function_name='regcomp', header_name='regex.h',