Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset() does not reset high-resolution timer #206

Closed
novemberborn opened this issue Sep 13, 2018 · 1 comment
Closed

reset() does not reset high-resolution timer #206

novemberborn opened this issue Sep 13, 2018 · 1 comment

Comments

@novemberborn
Copy link
Contributor

  • Lolex version : 2.7.4

What did you expect to happen?

reset() resets the high-resolution timer.

What actually happens

The high-resolution timer is not reset.

How to reproduce

const clock = lolex.install()
clock.now === 0
clock.tick(20)
clock.hrNow === 20
clock.reset()
clock.now === 0
clock.hrNow === 20
@benjamingr
Copy link
Member

PR welcome, otherwise I can work on this in October happily :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants