copied TimeMan from insalmo-fa (closes #51)