Small library for interval timing