diff --git a/WebContent/OSRM.JSONP.js b/WebContent/OSRM.JSONP.js
index 3a337bd57..430fc8beb 100644
--- a/WebContent/OSRM.JSONP.js
+++ b/WebContent/OSRM.JSONP.js
@@ -26,6 +26,7 @@ OSRM.JSONP = {
callbacks: {},
timeouts: {},
timers: {},
+ durations: {},
// default callback routines
@@ -50,7 +51,7 @@ OSRM.JSONP = {
OSRM.JSONP.fences[id] = undefined; // clean fence
}
-// OSRM.debug.log("[jsonp] timout handling: "+id);
+ OSRM.debug.log("[jsonp] timout handling: "+id+" "+ (new Date() - OSRM.JSONP.durations[id]) );
};
// wrap callback function
@@ -66,7 +67,7 @@ OSRM.JSONP = {
OSRM.JSONP.fences[id] = undefined; // clean fence
}
-// OSRM.debug.log("[jsonp] response handling: "+id);
+ OSRM.debug.log("[jsonp] response handling: "+id+" "+ (new Date() - OSRM.JSONP.durations[id]) );
};
// clean DOM (unfortunately, script elements cannot be reused by all browsers)
@@ -83,6 +84,7 @@ OSRM.JSONP = {
// start timeout timer
OSRM.JSONP.timers[id] = setTimeout(OSRM.JSONP.timeouts[id], timeout);
+ OSRM.JSONP.durations[id] = new Date();
// OSRM.debug.log("[jsonp] init: "+id);
return true;
@@ -94,5 +96,6 @@ OSRM.JSONP = {
OSRM.JSONP.callbacks = {};
OSRM.JSONP.timeouts = {};
OSRM.JSONP.timers = {};
+ OSRM.JSONP.durations = {};
}
};
\ No newline at end of file
diff --git a/WebContent/main.html b/WebContent/main.html
index c42a10374..02933f485 100644
--- a/WebContent/main.html
+++ b/WebContent/main.html
@@ -44,7 +44,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
-
+