Repository: sinonjs/lolex (js)

Issue:
reset() does not reset high-resolution timer
* 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**

```js
const clock = lolex.install()
clock.now === 0
clock.tick(20)
clock.hrNow === 20
clock.reset()
clock.now === 0
clock.hrNow === 20
```

Pull request:
fix: reset high resolution timer on clock.reset
#### Purpose (TL;DR) - mandatory
Fixes #206

Patch:
diff --git a/src/lolex-src.js b/src/lolex-src.js
index 14f55ca..f0bddf8 100644
--- a/src/lolex-src.js
+++ b/src/lolex-src.js
@@ -727,6 +727,7 @@ function withGlobal(_global) {
             clock.timers = {};
             clock.jobs = [];
             clock.now = getEpoch(start);
+            clock.hrNow = 0;
         };
 
         clock.setSystemTime = function setSystemTime(systemTime) {


Test patch:
diff --git a/test/lolex-test.js b/test/lolex-test.js
index 6684870..6fbdab3 100644
--- a/test/lolex-test.js
+++ b/test/lolex-test.js
@@ -1308,6 +1308,14 @@ describe("lolex", function () {
             assert.equals(clock.now, 10000);
             clock.uninstall();
         });
+
+        it("resets hrTime - issue #206", function () {
+            var clock = lolex.createClock();
+            clock.tick(100);
+            assert.equals(clock.hrNow, 100);
+            clock.reset();
+            assert.equals(clock.hrNow, 0);
+        });
     });
 
     describe("setInterval", function () {