timing functionality now c++11 chrono based

time in the library is now measured using the c++11 chrono library which
is more flexible than what was previously used (stop_watch)