utility module for sampling transactions over time