Implements priority time queue in trace tests
Merge pull request #1737 from yurydelendik/settimeout-trace

Implements priority time queue in trace tests