ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeUnit.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/TimeUnit.java (file contents):
Revision 1.46 by jsr166, Sat Sep 12 19:25:31 2015 UTC vs.
Revision 1.47 by jsr166, Sun Sep 20 17:03:23 2015 UTC

# Line 41 | Line 41 | package java.util.concurrent;
41   */
42   public enum TimeUnit {
43      /**
44 <     * Time unit representing one thousandth of a microsecond
44 >     * Time unit representing one thousandth of a microsecond.
45       */
46      NANOSECONDS {
47          public long toNanos(long d)   { return d; }
# Line 56 | Line 56 | public enum TimeUnit {
56      },
57  
58      /**
59 <     * Time unit representing one thousandth of a millisecond
59 >     * Time unit representing one thousandth of a millisecond.
60       */
61      MICROSECONDS {
62          public long toNanos(long d)   { return x(d, C1/C0, MAX/(C1/C0)); }
# Line 71 | Line 71 | public enum TimeUnit {
71      },
72  
73      /**
74 <     * Time unit representing one thousandth of a second
74 >     * Time unit representing one thousandth of a second.
75       */
76      MILLISECONDS {
77          public long toNanos(long d)   { return x(d, C2/C0, MAX/(C2/C0)); }
# Line 86 | Line 86 | public enum TimeUnit {
86      },
87  
88      /**
89 <     * Time unit representing one second
89 >     * Time unit representing one second.
90       */
91      SECONDS {
92          public long toNanos(long d)   { return x(d, C3/C0, MAX/(C3/C0)); }
# Line 101 | Line 101 | public enum TimeUnit {
101      },
102  
103      /**
104 <     * Time unit representing sixty seconds
104 >     * Time unit representing sixty seconds.
105       * @since 1.6
106       */
107      MINUTES {
# Line 117 | Line 117 | public enum TimeUnit {
117      },
118  
119      /**
120 <     * Time unit representing sixty minutes
120 >     * Time unit representing sixty minutes.
121       * @since 1.6
122       */
123      HOURS {
# Line 133 | Line 133 | public enum TimeUnit {
133      },
134  
135      /**
136 <     * Time unit representing twenty four hours
136 >     * Time unit representing twenty four hours.
137       * @since 1.6
138       */
139      DAYS {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines