Method for processing time values in a computer or programmable machine
First Claim
1. A method for processing time values in a computer or programmable machine, comprising:
- defining, in a processor, a high precision timer data comprising at least a digital number and a Boolean flag for each time value, the Boolean flag clarifying whether the timer is representing an absolute or real time herein after called global timer, or if the timer is representing a relative time, herein after called local timer; and
computing, in the processor, of two time values from the high precision timer data structure, the computing comprising an addition or subtraction operation of the digital numbers and a logical operation of the Boolean flags;
wherein;
on a condition that the two time values are added, the time values are added and the Boolean flags are combined in a logical OR operation to determine a flag value for the resulting value, oron a condition that the two time values are subtracted, the time values are subtracted and the Boolean flags are combined in a logical XOR operation to determine the flag value for the resulting value;
and wherein the global timer flag is dominant and the local timer flag is recessive.
2 Assignments
0 Petitions
Accused Products
Abstract
Modern computers (10, 20) come with different timers having different attributes like time resolution, supported time range and time reference. Some are local timers, representing relative time values like the TSC counter (11, 21) counting CPU cycles from the power on or reset of the computer. Some are global timers, representing an absolute or real time. Having different classes of timers in the computer (10, 20), a number of computations need to be performed to tie the different timers to each other.
It is the idea of the invention to define a single high resolution timer structure wherein the time value is represented with a digital number and a flag clarifies whether the timer is a global timer or local timer. The invention enables a much faster processing of the time values. The global time, tied to a high-resolution timer can be tracked much faster. This means better precision of scheduling of time critical jobs, like packet scheduling for data transport.
11 Citations
6 Claims
-
1. A method for processing time values in a computer or programmable machine, comprising:
-
defining, in a processor, a high precision timer data comprising at least a digital number and a Boolean flag for each time value, the Boolean flag clarifying whether the timer is representing an absolute or real time herein after called global timer, or if the timer is representing a relative time, herein after called local timer; and computing, in the processor, of two time values from the high precision timer data structure, the computing comprising an addition or subtraction operation of the digital numbers and a logical operation of the Boolean flags; wherein; on a condition that the two time values are added, the time values are added and the Boolean flags are combined in a logical OR operation to determine a flag value for the resulting value, or on a condition that the two time values are subtracted, the time values are subtracted and the Boolean flags are combined in a logical XOR operation to determine the flag value for the resulting value; and wherein the global timer flag is dominant and the local timer flag is recessive. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification