@@ -86,7 +86,7 @@ struct Value {
86
86
* Model BLE durations.
87
87
*
88
88
* @tparam Rep The representation type of the duration.
89
- * @tparam TB The time base in us .
89
+ * @tparam TB The time base in micro seconds .
90
90
* @tparam Range Closed interval of the duration
91
91
* @tparam Forever The special value (if applicable) that represents a forever
92
92
* duration.
@@ -115,7 +115,7 @@ struct Duration {
115
115
/* *
116
116
* Construct a Duration from an integer value.
117
117
*
118
- * @param v The value of the duration in TN units.
118
+ * @param v The value of the duration in TIME_BASE units.
119
119
*/
120
120
explicit Duration (Rep v) : duration(clamp(v))
121
121
{
@@ -124,10 +124,10 @@ struct Duration {
124
124
/* *
125
125
* Construct a Duration from another Duration.
126
126
*
127
- * @note The operation fail at compile time of there is a loss of precision.
127
+ * @note The operation fail at compile time if there is a loss of precision.
128
128
*
129
129
* @tparam OtherRep The type used to represent the other Duration.
130
- * @tparam OtherTB The time base in us units of the other Duration.
130
+ * @tparam OtherTB The time base in micro seconds of the other Duration.
131
131
* @tparam OtherRange The range of the other Duration.
132
132
* @tparam OtherF The forever value of the other type.
133
133
*
@@ -149,7 +149,7 @@ struct Duration {
149
149
* @tparam OtherRange The range used by other_ms.
150
150
* @tparam OtherF The forever value used by other_ms.
151
151
*
152
- * @param other_ms The Duration in ms to convert.
152
+ * @param other_ms The Duration in millisecond to convert.
153
153
*/
154
154
template <typename OtherRep, typename OtherRange, typename OtherF>
155
155
explicit Duration (Duration<OtherRep, 1000 , OtherRange, OtherF> other_ms, void * = NULL ) :
@@ -270,7 +270,7 @@ typedef Duration<uint32_t, 1000 * millisecond_t::TIME_BASE> second_t;
270
270
* @tparam RangeIn The range of duration.
271
271
* @tparam FIn The Forever value of duration.
272
272
* @param duration The duration to convert.
273
- * @return The converted duration. It is rounded up if precision is loss .
273
+ * @return The converted duration. It is rounded up if precision is lost .
274
274
*
275
275
* @related Duration
276
276
*/
0 commit comments