J.Ty.
Well-known Member
- Joined
- Feb 4, 2012
- Messages
- 1,118
- Office Version
- 365
- 2013
- 2010
- Platform
- Windows
- Web
I am using VBA Timer function to measure time of various Excel computations, in the spirit of
However, when it comes to measuring periods of the order of many hours, it overflows and recently I've got negative values of 'elapsed'. Does anybody know the size of the numbers Timer uses, and how to recover the true time from the negative one?
J.Ty.
Code:
t = Timer
Worksheets("Example").Calculate
s = Timer
elapsed = s - t
However, when it comes to measuring periods of the order of many hours, it overflows and recently I've got negative values of 'elapsed'. Does anybody know the size of the numbers Timer uses, and how to recover the true time from the negative one?
J.Ty.
Last edited: