Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Best way to grab milliseconds?
I'm currently trying to show a specific time format within an SRP Report Table control but I'm not sure if there are any built in SRP or OI functions that would give me this answer. What would be the best way to grab the current milliseconds in OI? During the initialization for my report table, I'm setting the "OLE.ColumnFormat[1]" property as "hh:mm:ss:000AA" which is working fine. My issue is that I cant get the current time in milliseconds to replace the '000'. An example of what's being displayed is '04:35:20:000PM'. (Using the intrinsic time() and date() functions for now).
Comments
Do a 'time' search in SYSPROG sysprocs for the DLL_.... ones, then google each one and pick the msoft docs related ones.
I don't want to discourage you from using WinAPI to get higher precision, but you'll have to manage that data yourself from top to bottom--including formatting--since none of the controls nor OI will understand it.
If you are timing a process, the SRP_Stopwatch utility will return milliseconds - but like Kevin said, you'd have to manage the data a bit and how it would be displayed.