Bruce Evans 6976af69e8 Obtained from: my old fix for 1.1.5
Improve hzto():

Round up instead of down and then add 1 tick.  This fixes sleep(1)
sometimes sleeping for < 1 second and usleep(10000) sometimes sleeping
for as little as 1 usec + syscall time.

Don't do all the calculations at splhigh().

Don't depend on `tick' being a multiple of 1000.

Don't lose accuracy for `sec' between 0x7fffffff / 1000 - 1000 and
0x7fffffff / hz.

Don't assume that longs are 32 bits or that ints have the same size as
longs.
1994-12-12 11:58:46 +00:00
..
1994-12-11 03:33:58 +00:00
1994-12-12 11:58:46 +00:00
1994-12-04 08:52:51 +00:00
1994-08-21 05:44:12 +00:00
1994-08-02 07:55:43 +00:00
1994-12-03 22:52:57 +00:00
1994-12-11 23:20:50 +00:00
1994-08-02 07:55:43 +00:00
1994-11-26 19:38:30 +00:00