commit | 755905857ac26c28d9886ab94c410b6fec4de192 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Mar 05 14:54:50 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Mar 05 16:56:16 2009 +0100 |
tree | 3749f059843fc1693e18aa6679d15bbc62b6e6f5 | |
parent | 776cd87e321f403929898ad5167f48040c24460e [diff] |
[MINOR] add curr_sec_ms and curr_sec_ms_scaled for current second. Several algorithms will need to know the millisecond value within the current second. Instead of doing a divide every time it is needed, it's better to compute it when it changes, which is when now and now_ms are recomputed. curr_sec_ms_scaled is the same multiplied by 2^32/1000, which will be useful to compute some ratios based on the position within last second.