You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2016/06/13 20:30:04 UTC
[jira] [Created] (TS-4532) static type checking for time units
James Peach created TS-4532:
-------------------------------
Summary: static type checking for time units
Key: TS-4532
URL: https://issues.apache.org/jira/browse/TS-4532
Project: Traffic Server
Issue Type: Improvement
Components: Core
Reporter: James Peach
Since the various time units {{ink_time_t}}, {{time_t}}, {{ink_hrtime}} are all typedefs of C integral types, it is very hard to ensure that units are being converted and compared correctly.
Consider wrapping these in trivial classes as part of making the time APIs more straightforward. Alternatively, if we move to {{C++11}} investigate {{std::chrono}} for this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)