using c++ 11 features
cross platform timer