Small library for collecting time samples.