I am trying to collect some statistics and performance metrics about the cloud tasks and jobs that I am submitting to the Azure Batch pool. For that, I am using the built-in TaskExecutionInformation and TaskStatisitics classes, but I am confused about how some metrics are calculated through these classes. Specifically, I want to know how long each of my tasks takes to execute, so I checked the wallclocktime built into task.statistics, and the difference between the start and end times built into task.ExecutionInformation and these two were different.
How is wall clock time calculated in task statistics? And why is it different from the timespan difference between the start and end times obtained through the task execution information?
Also, I noticed a large variance of the wall clock time of task execution (from 0.6 sec to 21 sec in my scenario) for the same task processing. What could be causing such a large variance?
Thanks!