I need to calculate the difference between two timestamps in milliseconds.
Unfortunately, the DateDiff-function of VBA does not offer this precision.
Are there any workarounds?
I need to calculate the difference between two timestamps in milliseconds. Unfortunately, the DateDiff-function
Share
You could use the method described here as follows:-
Create a new class module called
StopWatchPut the following code in the
StopWatchclass module:You use the code as follows:
Other methods describe use of the VBA Timer function but this is only accurate to one hundredth of a second (centisecond).