mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
use getTime function when subtracting dates. Approved by leaf and reviewed by sspitzer.
This commit is contained in:
parent
cc139e4da7
commit
a5cc14322f
@ -174,7 +174,7 @@ function ChangeFolderByURI(uri)
|
||||
var beforeTime = new Date();
|
||||
folder.setAttribute('id', uri);
|
||||
var afterTime = new Date();
|
||||
var timeToLoad = (afterTime - beforeTime)/1000;
|
||||
var timeToLoad = (afterTime.getTime() - beforeTime.getTime())/1000;
|
||||
if(showPerformance)
|
||||
dump("Time to load " + uri + " is " + timeToLoad + " seconds\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user