1std::chrono::steady_clock::time_point begin = std::chrono::steady_clock::now();
2//other stuff
3std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();
4std::chrono::duration_cast<std::chrono::microseconds>(end - begin).count()
5//time difference in microseconds