Yep. They're meant to mimic the stopwatch I had as a kid :) Split would
set the time, but let the stopwatch carry on working wheras stop would set
the time and stop the watch continuing.

The implementation ended up being the same. The only thing I can think of
is to throw Exceptions if people try to call split or stop again.

Hen

On Wed, 19 May 2004, matthew.hawthorne wrote:

> Gary Gregory wrote:
> > The StopWatch method stop and split do the same thing. Why have both?
> > It's confusing.
>
> After taking a look at the javadocs, I don't think that they're supposed
> to do the same thing,
> they've just been coded that way.  It seems that stop() is supposed to
> reset the start time, and
> split() isn't.  Maybe adding a startTime = -1 to the stop() method would
> fix this?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to