mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
a55fe2b554
This test attempts to assure that the measurements we get from openvpn::cpu_time() is within a reasonable range of what we should normally expect. This is achieved by using a simple worker thread which ensures the process is not "idling" (like it would with sleep()) but in a real busy loop which takes some time. Then we measure the time spent in the busy loop, both using a simplistic time() and comparing that with what cpu_time() returns. This unit test also supports measuring multiple running threads individually too. Signed-off-by: David Sommerseth <davids@openvpn.net> |
||
---|---|---|
.. | ||
ovpncli | ||
ssl | ||
unittests | ||
unused |