The code was using boost::timer version 1 while Boost has moved to a new API. The new timer API is very similar to the one introduced in C++ 11, so I just went with C++11.
Notes:
To reset the timer, just allocate a new one.
To calculate elapsed time, subtract the timer from now (a new timer)
Then cast the result to the desired granularity. This code is casting to seconds to match the original.
The code was using boost::timer version 1 while Boost has moved to a new API. The new timer API is very similar to the one introduced in C++ 11, so I just went with C++11.
Notes: