UserInputOpsExtras.mesa
Copyright Ó 1992 by Xerox Corporation. All rights reserved.
Christian Jacobi, April 23, 1992 11:27:21 am PDT
Christian Jacobi, April 23, 1992 11:53 am PDT
Functionality which should be added to UserInputOps
DIRECTORY
BasicTime USING [GMT],
RelativeTimes USING [TimeStamp],
UserInput USING [Handle];
UserInputOpsExtras: CEDAR DEFINITIONS ~
BEGIN
Handle: TYPE = UserInput.Handle;
GetEpochTimes:
PROC [handle: Handle]
RETURNS [epochGMT: BasicTime.
GMT, epochTimeStamp: RelativeTimes.TimeStamp];
Basically an inverse of UserInputOps.SetAbsoluteTime. (Except that epochGMT and epochTimeStamp may have been adjusted both since the last call of SetAbsoluteTime).
This functionality is added to UserInputOps to enable the existing interface to report its internal state. Nevertheless it is stated here that using a UserInput handle is not a good way for accessing the absolute time. The reason UserInput deals with times is for the purpose of timeout and double click recognition; not for setting clocks. The absolute value of a time reported by UserInputOps may be off by network delays and clock drift.
END.