ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeUnit.java
Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Fri Jun 22 17:45:03 2018 UTC (5 years, 11 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 , to selected 1.18
TimeUnit#convert(Duration): use @apiNote

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Sun Jun 10 01:18:10 2018 UTC (5 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.65: +1 -1 lines
Diff to previous 1.65 , to selected 1.18
suppress errorprone [NarrowingCompoundAssignment] warning

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Fri Jun 8 18:53:49 2018 UTC (5 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.64: +3 -0 lines
Diff to previous 1.64 , to selected 1.18
clarify difference between Duration.toNanos and TimeUnit.convert(Duration)

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Tue Jun 5 22:26:54 2018 UTC (5 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.63: +51 -12 lines
Diff to previous 1.63 , to selected 1.18
8204375: Add TimeUnit#convert(Duration)

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Mon Aug 21 00:20:55 2017 UTC (6 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.62: +1 -1 lines
Diff to previous 1.62 , to selected 1.18
finish: use lock object in sample code snippet

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Mon Aug 21 00:05:14 2017 UTC (6 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.61: +6 -4 lines
Diff to previous 1.61 , to selected 1.18
use lock object in sample code snippet

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Sun Aug 20 23:47:06 2017 UTC (6 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.60: +1 -1 lines
Diff to previous 1.60 , to selected 1.18
generify some sample code snippets

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Wed Apr 19 23:45:51 2017 UTC (7 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 , to selected 1.18
Redo @link and @linkplain; one @link was pointing to the wrong poll method

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sun Mar 27 18:57:00 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.58: +1 -1 lines
Diff to previous 1.58 , to selected 1.18
constructor should be private

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 17:05:48 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.57: +14 -14 lines
Diff to previous 1.57 , to selected 1.18
very small readability improvement

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 16:40:51 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 , to selected 1.18
clearer javadoc

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 16:31:59 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.55: +7 -7 lines
Diff to previous 1.55 , to selected 1.18
use symbolic scale names

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 16:18:25 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.54: +1 -1 lines
Diff to previous 1.54 , to selected 1.18
use local instead of field

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 16:06:52 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 , to selected 1.18
whitespace

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 11:20:03 2016 UTC (8 years, 2 months ago) by dl
Branch: MAIN
Changes since 1.52: +32 -16 lines
Diff to previous 1.52 , to selected 1.18
Cache microsec

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Fri Mar 25 16:16:02 2016 UTC (8 years, 2 months ago) by dl
Branch: MAIN
Changes since 1.51: +29 -11 lines
Diff to previous 1.51 , to selected 1.18
Cache toSeconds conversion constants

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Fri Mar 25 03:14:56 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 , to selected 1.18
coding style

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Thu Mar 24 11:41:51 2016 UTC (8 years, 2 months ago) by dl
Branch: MAIN
Changes since 1.49: +34 -17 lines
Diff to previous 1.49 , to selected 1.18
Minor coding tweaks

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Wed Mar 23 14:03:06 2016 UTC (8 years, 2 months ago) by dl
Branch: MAIN
Changes since 1.48: +75 -118 lines
Diff to previous 1.48 , to selected 1.18
Avoid megamorphic dispatch

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Fri Jan 29 20:02:39 2016 UTC (8 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.47: +47 -0 lines
Diff to previous 1.47 , to selected 1.18
Implement 8141452: Convert between TimeUnit and ChronoUnit

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Sun Sep 20 17:03:23 2015 UTC (8 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.46: +7 -7 lines
Diff to previous 1.46 , to selected 1.18
Terminate javadoc with a period.

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Sat Sep 12 19:25:31 2015 UTC (8 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.45: +1 -1 lines
Diff to previous 1.45 , to selected 1.18
whitespace

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue Feb 17 18:55:39 2015 UTC (9 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 , to selected 1.18
standardize code sample idiom: * <pre> {@code

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Wed Feb 4 09:04:24 2015 UTC (9 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.43: +3 -0 lines
Diff to previous 1.43 , to selected 1.18
add missing @since 1.6

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Wed Jul 17 21:17:43 2013 UTC (10 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.42: +27 -0 lines
Diff to previous 1.42 , to selected 1.18
fix doclint warnings

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Tue Jun 18 19:29:26 2013 UTC (10 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.41: +7 -8 lines
Diff to previous 1.41 , to selected 1.18
javadoc: first sentence - third person

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Mon Feb 11 04:29:50 2013 UTC (11 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.40: +14 -14 lines
Diff to previous 1.40 , to selected 1.18
javadoc link readability

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Wed Jan 16 01:59:48 2013 UTC (11 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.39: +35 -35 lines
Diff to previous 1.39 , to selected 1.18
<tt> -> {@code

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Thu Jun 9 07:48:43 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.38: +7 -7 lines
Diff to previous 1.38 , to selected 1.18
consistent style for code snippets

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Tue Mar 15 19:47:03 2011 UTC (13 years, 2 months ago) by jsr166
Branch: MAIN
CVS Tags: release-1_7_0
Changes since 1.37: +1 -1 lines
Diff to previous 1.37 , to selected 1.18
Update Creative Commons license URL in legal notices

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Fri Oct 22 06:23:38 2010 UTC (13 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.36: +13 -11 lines
Diff to previous 1.36 , to selected 1.18
prefer @link to @see in javadoc

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Fri Oct 22 05:52:55 2010 UTC (13 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.35: +10 -8 lines
Diff to previous 1.35 , to selected 1.18
improve sample code

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Sun May 20 08:23:00 2007 UTC (17 years ago) by jsr166
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 , to selected 1.18
legal notice

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Thu Dec 15 17:38:06 2005 UTC (18 years, 5 months ago) by dl
Branch: MAIN
Changes since 1.33: +7 -19 lines
Diff to previous 1.33 , to selected 1.18
Remove unnecessary Tiger "index" value; serialization compatibility doesn't require it.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Sat Jun 18 19:36:25 2005 UTC (18 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.32: +7 -6 lines
Diff to previous 1.32 , to selected 1.18
doc fixes

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Sat Jun 18 12:03:05 2005 UTC (18 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.31: +33 -10 lines
Diff to previous 1.31 , to selected 1.18
Avoid "abstract" to ensure signature compatibility

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Tue Jun 14 15:09:34 2005 UTC (18 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.30: +3 -0 lines
Diff to previous 1.30 , to selected 1.18
Add @since tags

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Mon May 23 05:20:55 2005 UTC (19 years ago) by jsr166
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29 , to selected 1.18
whitespace

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Tue Apr 26 01:17:18 2005 UTC (19 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.28: +21 -21 lines
Diff to previous 1.28 , to selected 1.18
doc fixes

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Wed Mar 9 12:47:08 2005 UTC (19 years, 2 months ago) by dl
Branch: MAIN
Changes since 1.27: +6 -3 lines
Diff to previous 1.27 , to selected 1.18
Clarify timeout param

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Tue Mar 8 12:27:11 2005 UTC (19 years, 2 months ago) by dl
Branch: MAIN
Changes since 1.26: +302 -302 lines
Diff to previous 1.26 , to selected 1.18
Copyedit pass

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon Mar 7 16:41:56 2005 UTC (19 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.25: +7 -7 lines
Diff to previous 1.25 , to selected 1.18
Copyedit pass

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sun Mar 6 12:06:21 2005 UTC (19 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24 , to selected 1.18
Copyedit pass

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Thu Dec 30 17:57:38 2004 UTC (19 years, 5 months ago) by peierls
Branch: MAIN
Changes since 1.23: +10 -4 lines
Diff to previous 1.23 , to selected 1.18
Add overflow possibility to @returns entries for toSeconds(), toMinutes(), and toHours()

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Thu Dec 30 16:19:15 2004 UTC (19 years, 5 months ago) by peierls
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 , to selected 1.18
Don't use "billionth" in definition of nanosecond.

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Thu Dec 30 13:04:46 2004 UTC (19 years, 5 months ago) by dl
Branch: MAIN
Changes since 1.21: +299 -223 lines
Diff to previous 1.21 , to selected 1.18
Added  minutes, hours, days support

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Mon Feb 9 00:23:55 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_PFD
Changes since 1.20: +1 -1 lines
Diff to previous 1.20 , to selected 1.18
Wording improvements and fixes

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Tue Jan 13 12:59:26 2004 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.19: +47 -85 lines
Diff to previous 1.19 , to selected 1.18
TimeUnit now an enum

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sun Jan 11 23:19:55 2004 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.18: +13 -8 lines
Diff to previous 1.18
formatting; grammar

Revision 1.18 - (view) (download) (annotate) - [selected]
Sat Dec 27 19:26:26 2003 UTC (20 years, 5 months ago) by dl
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
Headers reference Creative Commons

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Sun Oct 5 23:00:18 2003 UTC (20 years, 8 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_DEC9_POST_ES_SUBMIT, JSR166_DEC9_PRE_ES_SUBMIT, JSR166_NOV3_FREEZE
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 , to selected 1.18
added drainTo; clarified various exception specs

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Fri Sep 26 11:37:11 2003 UTC (20 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 , to selected 1.18
Spellcheck

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sat Sep 13 18:51:11 2003 UTC (20 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.14: +8 -9 lines
Diff to previous 1.14 , to selected 1.18
Proofreading pass -- many minor adjustments

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Fri Sep 12 20:17:50 2003 UTC (20 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.13: +66 -78 lines
Diff to previous 1.13 , to selected 1.18
Use readResolve to deserialize

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Fri Sep 12 15:40:10 2003 UTC (20 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.12: +85 -23 lines
Diff to previous 1.12 , to selected 1.18
Adapt AbstractQueue changes; Conditionalize CancellableTask.reset; new TimeUnit methods

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sun Aug 31 13:33:14 2003 UTC (20 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.11: +15 -20 lines
Diff to previous 1.11 , to selected 1.18
Removed non-standard tags and misc javadoc cleanup

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sat Aug 30 14:59:27 2003 UTC (20 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 , to selected 1.18
Fix typo

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Sat Aug 30 14:52:52 2003 UTC (20 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.9: +53 -20 lines
Diff to previous 1.9 , to selected 1.18
Saturate conversions

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Thu Aug 7 16:00:28 2003 UTC (20 years, 10 months ago) by dl
Branch: MAIN
Changes since 1.8: +20 -8 lines
Diff to previous 1.8 , to selected 1.18
ScheduledExecutor must prestart core threads

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Wed Aug 6 18:22:09 2003 UTC (20 years, 10 months ago) by tim
Branch: MAIN
CVS Tags: JSR166_CR1
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 , to selected 1.18
Fixes to minor errors found by DocCheck

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Wed Aug 6 16:08:49 2003 UTC (20 years, 10 months ago) by dl
Branch: MAIN
Changes since 1.6: +6 -5 lines
Diff to previous 1.6 , to selected 1.18
Misc doc touch-ups

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Thu Jul 31 20:32:00 2003 UTC (20 years, 10 months ago) by tim
Branch: MAIN
Changes since 1.5: +20 -20 lines
Diff to previous 1.5 , to selected 1.18
More javadoc link fixes

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sat Jul 12 00:50:34 2003 UTC (20 years, 10 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_PRELIMINARY_TEST_RELEASE_2
Changes since 1.4: +2 -34 lines
Diff to previous 1.4 , to selected 1.18
Added LockSupport; moved nanoTime

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Tue Jun 24 14:34:49 2003 UTC (20 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.3: +6 -6 lines
Diff to previous 1.3 , to selected 1.18
Added missing javadoc tags; minor reformatting

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 23:42:27 2003 UTC (20 years, 11 months ago) by dholmes
Branch: MAIN
Changes since 1.2: +11 -13 lines
Diff to previous 1.2 , to selected 1.18
Removed fixme.
Fixed minor typos and layout issues.

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Tue May 27 18:14:40 2003 UTC (21 years ago) by dl
Branch: MAIN
CVS Tags: JSR166_PRELIMINARY_TEST_RELEASE_1, JSR166_PRERELEASE_0_1
Changes since 1.1: +28 -13 lines
Diff to previous 1.1 , to selected 1.18
re-check-in initial implementations

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Wed May 14 21:30:48 2003 UTC (21 years ago) by tim
Branch: MAIN
Diff to selected 1.18
Moved main source rooted at . to ./src/main
Moved test source rooted at ./etc/testcases to ./src/test

Convenience Links

Links to HEAD: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a