use getTime function when subtracting dates. Approved by leaf and reviewed by sspitzer.

This commit is contained in:
putterman%netscape.com 1999-06-23 18:52:26 +00:00
parent cc139e4da7
commit a5cc14322f

View File

@ -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");
}