ObjectGears Help

           
Forum   ObjectGears (Version: 1.6.0.0)

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.

Example:

var sw =OG.Utils.CreateStopwatch();
sw.Start();

//measured script sequence

sw.Stop();

//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