ObjectGears Help

Forum   ObjectGears (Version:

Script performance measurement

When optimizing system performance it is useful to measure speed of script execution. This can be facilitated by the object OG.Utils.CreateStopWatch.


var sw =OG.Utils.CreateStopwatch();

//measured script sequence


//log entry
OG.Log.Write('Elapsed time (hh:mm:ss):' + sw.Elapsed);
OG.Log.Write('Elapsed time (ms):' + sw.ElapsedMilliseconds);

This website is using cookies files to provide services and analyse visits. You agree with that by using this website.     Further information