switch to std chrono/thread for examples