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-09-25 19:34:02 +00:00
1994-10-22 11:55:16 +00:00
1994-09-25 19:34:02 +00:00
1994-10-22 11:40:38 +00:00
1994-11-25 07:58:29 +00:00
1994-11-10 23:59:47 +00:00
1994-10-02 17:35:40 +00:00
1994-12-12 11:58:46 +00:00
1994-10-02 17:35:40 +00:00
1994-10-23 23:01:03 +00:00
1994-10-02 17:35:40 +00:00
1994-10-27 05:21:39 +00:00
1994-10-10 01:00:49 +00:00
1994-10-02 17:35:40 +00:00
1994-10-12 20:28:32 +00:00
1994-10-25 11:27:51 +00:00
1994-10-09 07:35:18 +00:00
1994-09-19 17:39:21 +00:00
1994-09-25 19:34:02 +00:00
1994-10-10 01:00:49 +00:00
1994-10-13 20:59:49 +00:00
1994-12-06 22:53:37 +00:00
1994-11-06 11:13:02 +00:00
1994-08-02 07:55:43 +00:00
1994-12-12 06:04:27 +00:00
1994-11-14 13:58:30 +00:00
1994-12-12 11:58:46 +00:00
1994-10-02 17:35:40 +00:00
1994-12-12 11:58:46 +00:00
1994-12-04 19:58:43 +00:00
1994-08-02 07:55:43 +00:00
1994-09-13 00:48:26 +00:00
1994-11-06 21:57:16 +00:00
1994-11-07 20:48:35 +00:00
1994-08-02 07:55:43 +00:00
1994-11-26 19:24:13 +00:00
1994-10-27 20:45:13 +00:00
1994-12-12 00:22:30 +00:00
1994-12-12 00:20:34 +00:00
1994-12-12 00:20:34 +00:00
1994-10-02 17:35:40 +00:00
1994-09-13 14:47:38 +00:00
1994-10-02 17:35:40 +00:00
1994-09-21 21:58:39 +00:00
1994-10-02 17:35:40 +00:00
1994-08-02 07:55:43 +00:00
1994-10-30 20:25:21 +00:00
1994-08-02 07:55:43 +00:00
1994-10-13 21:41:36 +00:00
1994-09-25 19:34:02 +00:00
1994-10-02 17:35:40 +00:00
1994-10-09 21:58:47 +00:00
1994-10-02 04:48:21 +00:00
1994-09-13 14:47:38 +00:00
1994-10-02 17:35:40 +00:00
1994-10-06 21:07:04 +00:00
1994-10-02 17:35:40 +00:00
1994-10-11 20:29:42 +00:00
1994-10-05 21:22:24 +00:00
1994-10-31 17:20:15 +00:00
1994-10-29 23:59:48 +00:00
1994-11-26 19:24:13 +00:00
1994-08-02 07:55:43 +00:00
1994-12-04 01:46:13 +00:00
1994-12-04 01:01:45 +00:00
1994-08-02 07:55:43 +00:00
1994-10-09 07:35:18 +00:00
1994-08-02 07:55:43 +00:00
1994-10-02 17:35:40 +00:00
1994-10-02 17:35:40 +00:00
1994-10-02 17:35:40 +00:00
1994-10-02 17:35:40 +00:00
1994-10-02 17:35:40 +00:00
1994-10-23 20:52:11 +00:00
1994-10-02 17:35:40 +00:00
1994-10-08 22:33:43 +00:00
1994-11-12 01:47:43 +00:00
1994-10-06 21:07:04 +00:00
1994-11-04 14:41:46 +00:00
1994-10-20 00:48:28 +00:00
1994-10-06 21:07:04 +00:00
1994-11-12 01:47:43 +00:00
1994-10-06 21:07:04 +00:00
1994-11-04 14:41:46 +00:00
1994-10-05 09:48:45 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00
1994-09-28 16:45:22 +00:00