A simple method for measuring, accumulating and multiple reading of total durations (holding times) within given consecutive time intervals
Original Publication Date: 2003-Mar-25
Included in the Prior Art Database: 2003-Mar-25
Related PeopleOther Related People:
The idea is to use a structure with one single and three triple counters instead of a special counter structure used up to now to realize a simple method for measuring, accumulating and multiple reading of total duration within given consecutive accumulation time intervals. (A) # CURRENT ACTIVE STATES (B1) # BEGIN TIMES (B2) # BEGIN TIMES (B3) # BEGIN TIMES (C1) # END TIMES (C2) # END TIMES (C3) # END TIMES (D1) HELP VALUE (D2) HELP VALUE (D3) HELP VALUE One part (B1), (C1), (D1) of the triple counters is active, so it can be incremented or decremented by according events. A second part (B2), (C2), (D2) is passive. It contains the values of the last completed time interval and can be read out by user applications. The third idle part (B3), (C3), (D3) is or will be initialized. At the moment of time interval switching (the end of a accumulation time interval) the active part becomes passive, the passive part becomes idle and the idle part becomes active. This is realized via a simple array index switch. With this triple counter construction the passive counters can be read out as often as necessary. There is no special synchronizing of multiple reading out and initializing processes necessary. This means that the total duration can be calculated from the passive part of the counters at any time the counters are read and there is an independent idle part that is prepared to get the new active part with the next interval switch. The counter '# CURRENT ACTIVE STATES' (A) contains the total number of active states currently included in the measurement. It is incremented with a begin event and decremented with an end event. So, it is the current number of begin events for that no end events were received until now. The counter '# BEGIN TIMES' (Bx) contains the number of begin events registered during the actual interval (B1) respectively during the last completed interval (B2). The counter '# END TIMES' (Cx) contains the number of begin events registered during the actual interval (C1) respectively during the last completed interval (C2). The 'HELP VALUE' (Dx) contains the sum of the negative time reference counter value (NEGATIVE_REF_TIME) of the moments of all begin events and the positive time reference counter value (POSITIVE_REF_TIME) of the moments of all end events during the actual interval (D1) respectively the last interval (D2). A system clock provides the two complementary time reference counters NEGATIVE_REF_TIME. POSITIVE_REF_TIME is incremented every second. The sum of these two counters is always zero at the same time.