Add a range template class to make it easier use C++11 range based loops.
Convert more loops to range based for loops.
Add method to get the latest thread time and use it to fix a TODO.
Add option to display elapsed time.