diff options
Diffstat (limited to 'swat2/style/qooxdoo/widgets/core/QxDebug.js')
-rw-r--r-- | swat2/style/qooxdoo/widgets/core/QxDebug.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/swat2/style/qooxdoo/widgets/core/QxDebug.js b/swat2/style/qooxdoo/widgets/core/QxDebug.js new file mode 100644 index 0000000000..66ac659cfd --- /dev/null +++ b/swat2/style/qooxdoo/widgets/core/QxDebug.js @@ -0,0 +1,2 @@ +/* Copyright (c): 2002-2005 (Germany): United Internet, 1&1, GMX, Schlund+Partner, Alturo */ +window._start=(new Date).valueOf();function QxDebug(){var t=String((new Date).valueOf()-window._start);while(t.length<5)t="0"+t;t+=": ";var m;if(arguments.length==2){if(arguments[0]==this.last){m=t+"  "+arguments[1]+"<br/>";}else {m = t + arguments[0] + "<br/>" + t + "  " + arguments[1] + "<br/>";this.last=arguments[0];};}else {m=t+arguments[0];};var d=document.getElementById("testDebug");if(!d){QxDebug.cache+=m;}else {if(QxDebug.cache!=""){d.innerHTML+=QxDebug.cache;QxDebug.cache="";};d.innerHTML+=m;};};QxDebug.cache="";function QxDebugTimer(id){if(QxDebugTimerCache[id]){QxDebug("QxDebugTimer",id+":"+((new Date).valueOf()-QxDebugTimerCache[id])+"ms");delete QxDebugTimerCache[id];}else {QxDebugTimerCache[id]=(new Date).valueOf();};};QxDebugTimerCache={};
\ No newline at end of file |