bastion-rs / artillery

Fire-forged cluster management & Distributed data protocol
https://artillery.bastion-rs.com
Apache License 2.0
74 stars 10 forks source link

Using Instant instead of SystemTime for timeout #49

Open fmassot opened 3 years ago

fmassot commented 3 years ago

Currently, artillery-core detect time out responses by comparing two times based on SystemTime, see code

But using SystemTime to detect time out could lead to weird behavior as it is not monotonic. Would be nice to use Instant instead.