c++11 added, measuring time