Jason,
>Is there any particular reason this function takes @270 ticks to execute?
270 ticks on the device = 2.7 seconds, which doesn't sound right. I'm guessing
something caused a problem with profiling.
The DateToDays routine does take longer than I expected because it's got a long
multiply, a regular multiply, a regular divide, and up to 11 calls (via traps) to the
DaysInMonth routine.
Multiplication & division are really slow on a 68K processor, plus trap dispatching
(because it's initiated by an exception) is also no speed demon. Still, there's no way
it's anything close to 2+ seconds per call.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)