JP>> (The Dos32GetDateTime() function is still there, for backwards
JP>> compatibility and ease of porting 16-bit applications, but this is
JP>> really the wrong way to obtain the system time on 32-bit OS/2, since
JP>> it hits the clock hardware directly.)
IM> Are you saying that DOSQuerySysInfo() does not get its information
IM> directly from the clock? If not, how does it keep track of the time?
DosQuerySysInfo() can reasonably only do one of two things. Either the kernel
has a 64-bit integer which it initialises from the RTC at boot time and
updates once per second thereafter and whenever an application explicitly sets
the clock time (which is the way that I'd do it), or it calculates the 64-bit
integer on the fly from the information contained in the 16-bit global
infoseg.
I couldn't tell you which it does without access to the source of the OS/2
kernel, which I don't have.
¯ JdeBP ®
--- FleetStreet 1.22 NR
* Origin: JdeBP's point, using Squish (2:257/609.3)
|