I would like to measure time difference between two datetime in milliseconds.
In outsystems we have the built-in functions DiffHours, DiffMinutes, DiffSeconds. But my use case is to find difference in milliseconds.
Do we have any direct way to calculate the difference in milliseconds?
You can use this component. It is the date Utils
https://www.outsystems.com/forge/component-overview/674/dateutils
Kind Regards,
Márcio
This helps. I have created my own component at local repository to resolve the issue. Thanks
Hello there Arunkumar,
Hope you're doing well.
You can use DiffSeconds() built-in function and multiply the result by 1000. The output will be milliseconds.
This should be the easiest and fastest way to obtain the result that you pretend.
Kind regards,
Rui Barradas
Yep,Indeed the easiest way.
This cant be a solution in my case. I would like to capture the time taken in milliseconds. Times sometime will be very short. For example, 1537 ms then DiffSeconds calculates 1 or 2, multiplied by 1000 gives me 1000 or 2000. This is not acceptable in my case
Since this is an often needed function, I submitted an idea to get a DiffMilliseconds() function added to the list of built-in functions.
Regards,
Nordin