Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 31202 invoked from network); 18 Jul 2004 04:26:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Jul 2004 04:26:17 -0000 Received: (qmail 17253 invoked by uid 500); 18 Jul 2004 04:26:13 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 17228 invoked by uid 500); 18 Jul 2004 04:26:13 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 17214 invoked by uid 99); 18 Jul 2004 04:26:13 -0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Sat, 17 Jul 2004 21:26:13 -0700 Received: (qmail 18621 invoked by uid 50); 18 Jul 2004 04:27:37 -0000 Date: 18 Jul 2004 04:27:37 -0000 Message-ID: <20040718042737.18620.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 29163] - Make StopWatch validate state transitions X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=29163 Make StopWatch validate state transitions ------- Additional Comments From bayard@apache.org 2004-07-18 04:27 ------- The table above represents my thoughts on how Stopwatch should work. Bit crappy as it means a change in the features of the API. Perhaps stupidly, X means yes, - means no and ? is unsure. In addition, getTime would always return the time to now (unless suspended), while getSplitTime would be used to do splits. I can see one immediate problem. If in SUSPEND, should still be able to call stop(). The two ? marks are because I'm not sure if reset() should stop() if the stopwatch is not stopped yet. If so, then the only state that can't have reset is UNSTARTED. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org