use cxxtools::Timespan to specify the time to sleep in cxxtools::Thread::sleep