Project

General

Profile

Actions

Feature #2158

closed

Specialize system and steady clocks

Added by Alex Afanasyev over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Utils
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Add ability to replace ndn::time::system_clock and ndn::time::steady_clock with custom implementations.

There are two cases when such functionality is needed:

  • to run timing-related unit tests without actually relying on wall clock (which is error prone)
  • to run ndn-cxx-based applications in simulated environment (e.g., NS-3)
Actions

Also available in: Atom PDF