Hi Etienne,

On Wed, Jan 17, 2018 at 02:02:40PM +0100, Etienne Carrière wrote:
> Hi,
> 
> I propose a patch to add a sampler that extract the microsecond part of a hit.
> I had 2 ideas for implementation :
> * The one in the attached patch which is a new sampler that return an
> integer that is only the microsecond part of the timeval structure
> * A new sampler that would return a string that would append the
> second and the micro-second part (with a dot for separation)
> 
> Interested by your opinion,

So I studied it a bit, being worried about the risk of returning a
wrong time when time it re-adjusted. But in fact it will still be OK
since we're only changing integral milliseconds, thus the microsecond
part is never changed during our adjustments. So, provided you have a
stable and precise clock (ie you're not playing with a VM), your patch
can definitely be useful. I'm merging it.

Thanks!
Willy

Reply via email to