Switch to lightweight_test for unit tests and switch to non-deprecated timer

This commit is contained in:
Glen Fernandes
2019-04-23 17:07:46 -04:00
parent 03a5c8494e
commit 3d3b5bffd4
11 changed files with 1492 additions and 1503 deletions

View File

@@ -11,8 +11,8 @@
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition.hpp>
#include <boost/thread/thread.hpp>
#include <boost/timer/timer.hpp>
#include <boost/call_traits.hpp>
#include <boost/progress.hpp>
#include <boost/bind.hpp>
#include <deque>
#include <list>
@@ -229,7 +229,7 @@ template<class Buffer>
void fifo_test(Buffer* buffer) {
// Start of measurement
boost::progress_timer progress;
boost::timer::auto_cpu_timer progress;
// Initialize the buffer with some values before launching producer and consumer threads.
for (unsigned long i = QUEUE_SIZE / 2L; i > 0; --i) {