摘要 |
A system for implementing a wait cursor (64) at a system level. An event driver (50) accepts user driven events, such as keyboard operations (10) or mouse (15) actions, time stamps them and provides them to a window server (51). The window server (51) provides the event to an event queue (55) of an associated program. This event is referred to as the "lastEventSent". The time stamp associated with that event remains with the event through each stage of execution. Each time a program completes execution of an event, the program notifies the window server (51) of the time of the event. This event is referred to as the "lastEventConsumed" (54). The time stamp of the lastEventSent (53) is compared to the time stamp of the lastEventConsumed (54). If the time stamp of the lastEventSent (53) is not equal to the time stamp of the lastEventConsumed (54), the time stamp of the lastEventSent (53) is compared to the currentTime (66). If the difference between the time stamp of the lastEventSent (53) and the currentTime (66) exceeds a threshold value (65), a wait cursor (64) is implemented. |