Re: Questions regarding DT_TIME
Paul Cohen <[email protected]> Thu, 2 Apr 2009 14:58:04 +0200
| Newsgroups | gmane.comp.lang.eiffel.gobo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Eric, On Thu, Apr 2, 2009 at 12:30 PM, Eric Bezault <[email protected]> wrote: > All that is explained in $GOBO/doc/time/absolute.html#time Oops! Sorry. Please accept my humble apology! >> My questions are: >> >> 1. Why doesn't DT_TIME.duration use DT_TIME.canonical_duration? As a client, without reading the contracts, I would still simply assume "duration" had the semantics of "canonical_duration". But ok, now I know why it works like it does. >> 4. Is the Gobo project interested in my DT_STOPWATCH class? > > Yes. But I'm just wondering why you use DT_TIME and not > DT_DATE_TIME. Don't you have problems when running it > around midnight? So far I've been timing seconds and milliseconds in command line programs so it hasn't been a problem. But you are right of course. I'll change that. I've written small DS_TEST_CASE based test case for the class. Either you give me write access to the SVN repository or I can send you a small tarball with the code (2 classes and an ugly .ecf file). /Paul -- Paul Cohen www.seibostudios.se mobile: +46 730 787 035 e-mail: [email protected] ------------------------------------------------------------------------------