1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 22:55:46 +01:00

Check branch after a timeout.

This commit is contained in:
Kris Maglione
2011-02-14 16:54:20 -05:00
parent 0a008b6a51
commit baa296527e
2 changed files with 7 additions and 4 deletions

View File

@@ -160,6 +160,7 @@ defineModule.time = function time(major, minor, func, self) {
catch (e) {
loaded.util && util.reportError(e);
}
let delta = Date.now() - time;
defineModule.times.all += delta;
defineModule.times[major] = (defineModule.times[major] || 0) + delta;