Re: Splash screen - Anybody know an easy way to determine how many seconds it's been up?
CRPence <CRPbottle-/[email protected]> Mon, 17 Jan 2011 11:43:05 -0800
| Newsgroups | gmane.comp.lang.as400.mi |
|---|---|
| Organization | midrange.com |
| Message-ID | <[email protected]> |
On 1/17/11 9:58 AM, James H. H. Lampert wrote: > At this point, I'm trying to find out a way to determine how long the > splash screen has been up (once the program gets to the earliest > possible point for dismissing it), and I'm drawing a very large blank > on measuring a time interval in MI, without having to call QWCCVTDT > twice (which seems like an expensive way to do it). > IIRC the ToD value materialized has some number of bytes representing a binary number since the system-defined date\time origin [xx-Aug-1928?] which, if the latter value is larger than the former value retrieved by the materialize [MATTOD?], then the difference can be estimated very closely. Obviously if the value is smaller, the date or time was set back since the prior reading, and probably best to just infer the necessary amount of time has passed; as unsigned binary arithmetic, a negative result effects an underflow error. Regards, Chuck _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400.