Sampling with time limit instead of number of samples

This could be related to this open github issue.

However, for specifically not only stopping a trace early, but also saving the current trace early, I do not think there is current functionality for.