use cxxtools::Timespan for specifiying timespans in timer and timed wait in condition