Project

General

Profile

Actions

Task #1152

closed

time structs

Added by Junxiao Shi almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
6.00 h

Description

Define time::Duration and time::Point types; implement time::now.

time::Duration should be convertible to and from nanoseconds.

time::Point represents a time point in monotonic clock, and doesn't need to relate with UTC time.

These types should support addition, subtraction, and comparison operators.

  • Point + Duration => Point
  • Point - Point => Duration
  • Duration + Duration => Duration
  • Duration - Duration => Duration
  • Comparisons should take two operands of same type

time::now() uses monotonic clock on every platform that supports it, otherwise fallback to wall clock.


Related issues 3 (0 open3 closed)

Related to NFD - Task #1119: Implement simple event schedulerClosedAlex Afanasyev01/24/201401/24/2014

Actions
Blocks ndn-cxx - Task #1274: Optimize SchedulerAbandonedHang Zhang

Actions
Follows NFD - Task #1148: mock implementation of time structsClosedJunxiao Shi01/24/2014

Actions
Actions

Also available in: Atom PDF