How to get running time of Workflow in UiPath?

@Ricky_Fenardo,

You have to create two variable as below
startTime - TimeSpan type variable
endTime - TimeSpan type variable

  • Then get start time while starting the workflow System.DateTime.Now.TimeOfDay into the startTime variable using Assign activity

  • At end of the workflow get endTime using assign activity like this System.DateTime.Now.TimeOfDay.Subtract(startTime)

  • Now you will get the actual time it is executed

8 Likes