Fetching processing time from TN activity log

I’m trying to fetch the time taken by a processing service from activity log of TN. I used TN query commands to list the documents using the doctype ID and getEvents to get the corresponding activity log entries. After this I’m not sure how to fetch the time alone from the string in the Brief message column of activity log.
Any ideas?