You need to sign in to do that
Don't have an account?
Anil Kamisetty
Findout CPU Processing Time in Apex
Apex Triggers and Classes take time in processing the data. Salesforce has set Governer limits saying that max of 10 Seconds for an UI operation and 60 seconds for a batch operation.
Is there any where in APEX programming where in the Developer can check the amount of processing time (CPU) utilized so far ? Based on the time, take appropriate action.
Is there any where in APEX programming where in the Developer can check the amount of processing time (CPU) utilized so far ? Based on the time, take appropriate action.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_limits.htm
https://developer.salesforce.com/page/Best_Practice:_Use_of_the_Limits_Apex_Methods_to_avoid_Hitting_Governor_Limits
you can try below method
getCpuTime()
getLimitCpuTime() Please let us know if this will help you
Thanks
Amit Chaudhary
All Answers
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_limits.htm
https://developer.salesforce.com/page/Best_Practice:_Use_of_the_Limits_Apex_Methods_to_avoid_Hitting_Governor_Limits
you can try below method
getCpuTime()
getLimitCpuTime() Please let us know if this will help you
Thanks
Amit Chaudhary