ywkaras commented on code in PR #9812:
URL: https://github.com/apache/trafficserver/pull/9812#discussion_r1239147311


##########
include/ts/apidefs.h.in:
##########
@@ -902,8 +902,19 @@ typedef enum {
   TS_THREAD_POOL_UDP
 } TSThreadPool;
 
+/* TSHRTime stuff, this is a candidate for deprecation in v10.0.0 */
 typedef int64_t TSHRTime;
 
+#define TS_HRTIME_SECOND  (1000 * TS_HRTIME_MSECOND)
+#define TS_HRTIME_MSECOND (1000 * TS_HRTIME_USECOND)
+#define TS_HRTIME_USECOND (1000 * TS_HRTIME_NSECOND)
+#define TS_HRTIME_NSECOND (1LL)
+
+#define TS_HRTIME_SECONDS(_x)  ((_x)*TS_HRTIME_SECOND)

Review Comment:
   Why not `constexpr TSHRTime TS_HRTIME_SECONDS(TSHRTIME nsec) { return nsec * 
TS_HRTIME_SECOND); }` ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to