From: SourceForge.net <no...@so...> - 2009-12-01 02:20:22
|
Feature Requests item #2093247, was opened at 2008-09-04 14:16 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=2093247&group_id=15278 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: need details about run start/stop for timing purposes Initial Comment: I need RunListener to tell me somehow exactly when a given test started and stopped, so that I can report its execution time. I would also like to know the start/stop of the entire run. The answer needs to be in nanoseconds, measured using 1.5's System.nanoTime call. It looks like Description/Result respectively need to be modified. Result.getRunTime() does seem to report the execution time of the entire run (javadocs: "the number of milliseconds it took to run the entire suite to run"). However, the milliseconds result makes me suspect that System.currentTimeMillis is internally used, which is bad because a) it is typially less accurate than System.nanoTime b) being a "wall clock" value, it is subject to events like NTP time resets, daylight savings time resets etc that can introduce gross execution timeing errors. See http://www.ibm.com/developerworks/java/library/j-benchmark1.html#etm By the way, if you choose to modify Description to include this value, make sure that the fix is coordinated with any changes due to http://sourceforge.net/tracker/index.php?func=detail&aid=2090298&group_id=15278&atid=365278 ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2009-12-01 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: David Saff (dsaff) Date: 2009-11-16 17:52 Message: This tracker is being shut down. Please move this item to http://github.com/KentBeck/junit/issues ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=2093247&group_id=15278 |