… | |
… | |
4637 | watchers. |
4637 | watchers. |
4638 | |
4638 | |
4639 | =item C<double> must hold a time value in seconds with enough accuracy |
4639 | =item C<double> must hold a time value in seconds with enough accuracy |
4640 | |
4640 | |
4641 | The type C<double> is used to represent timestamps. It is required to |
4641 | The type C<double> is used to represent timestamps. It is required to |
4642 | have at least 51 bits of mantissa (and 9 bits of exponent), which is good |
4642 | have at least 51 bits of mantissa (and 9 bits of exponent), which is |
4643 | enough for at least into the year 4000. This requirement is fulfilled by |
4643 | good enough for at least into the year 4000 with millisecond accuracy |
|
|
4644 | (the design goal for libev). This requirement is overfulfilled by |
4644 | implementations implementing IEEE 754, which is basically all existing |
4645 | implementations using IEEE 754, which is basically all existing ones. With |
4645 | ones. With IEEE 754 doubles, you get microsecond accuracy until at least |
4646 | IEEE 754 doubles, you get microsecond accuracy until at least 2200. |
4646 | 2200. |
|
|
4647 | |
4647 | |
4648 | =back |
4648 | =back |
4649 | |
4649 | |
4650 | If you know of other additional requirements drop me a note. |
4650 | If you know of other additional requirements drop me a note. |
4651 | |
4651 | |