Fixed the time measurements so that it uses c++11's chrono to get better time precision