Calculate time difference between two dates in milliseconds

Hi all
I have a scenario where I have to calculate time difference between two activities. I am using datetime.ucttime.seconds. I am getting the difference time as 4 seconds something like that, which is correct. But I need accurate value such as 4.23 seconds. I don’t know how to proceed. Please suggest an idea.
Thanks in advance

Hi,

Have you tried using DateTime.Now, then using the dt.Subtract activity?

Cheers,
Josh

I am new to this. Could you please provide any xaml file for this

Hi,

See attached - this sort of thing should work for you. Any issues let me know.

Cheers,
Josh

Compare Milliseconds.xaml (6.3 KB)

1 Like

@Newton_Rich_SV

Use this

DateVariable.tostring(“hh:mm:fffffff”)

Thanks Bud it helped me