How to limit stopWatch to 2 decimal places?

I’m currently using the stopwatch functionality in all of my process since discovering it, but I was wondering how I can limit its output to 2 decimal places (seconds) when I have it log out the TotalMinutes it took to run?

stopWatch.Elapsed.TotalMinutes.ToString

image

Thanks :slight_smile:

@Sheri
Hope the below post helps.

variable2=variable1.Elapsed.TotalSeconds

image

1 Like

Perfecto, thanks so much!!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.