0

I have written a custom timer job for prOcessing few number of doc libs and few splists in my site collection and apply item level permissions for the items matching some criteria through CAML query. Now, for checking the functionality, i want to see how much time its taking to enumerate these splists/spdoc libs inside this timer job. ie,to calculate the actual time of execution for this timer job.

Is there a way I can achieve this?

1 Answer 1

2

You could write some timestamps at the beginning and the end of processing to either:

  • the ULS log or,

  • a database.

Writing to the ULS log can be done like this: https://bipinpankhania.wordpress.com/2015/06/25/write-to-uls-logs-programmatically-in-sharepoint-2013sharepoint-2010-on-premise/amp/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.