We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01290c4 commit 8554fc4Copy full SHA for 8554fc4
src/common/pico_time/include/pico/time.h
@@ -162,6 +162,16 @@ static inline int64_t absolute_time_diff_us(absolute_time_t from, absolute_time_
162
*/
163
extern const absolute_time_t at_the_end_of_time;
164
165
+/*! \brief Determine if the given timestamp is "at_the_end_of_time"
166
+ * \ingroup timestamp
167
+ * \param t the timestamp
168
+ * \return true if the timestamp is at_the_end_of_time
169
+ * \sa at_the_end_of_time
170
+ */
171
+static inline bool is_at_the_end_of_time(absolute_time_t t) {
172
+ return to_us_since_boot(t) == to_us_since_boot(at_the_end_of_time);
173
+}
174
+
175
/*! \brief The timestamp representing a null timestamp
176
* \ingroup timestamp
177
0 commit comments