How to check that how many miliseconds system has taken to execute code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 06:50 PM
Hi all,
Can come one please help me that how to check that how many milliseconds system has taken to execute below code.
Script include :
var result = [];
// if our list is empty, avoid the query...
if (list.isEmpty())
return result;
// query for the records on the list...
var gr = new GlideRecord(tableName);
gr.addQuery('sys_id', list);
gr.addActiveQuery();
gr.query();
// now iterate through our records, building our result list...
while (gr.next()) {
var le = new className(gr);
if (le.isValid())
result.push(le);
}
if (result.length != list.size()){
............
}
return result ;
},
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 07:19 PM
Hi @Kishore4321 ,
Please refer to below thread:
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda