[ndnSIM] Get Current SImulation Time in NFD

Alex Afanasyev aa at cs.fiu.edu
Wed Feb 27 05:52:57 PST 2019

NFD is real code, so you should be using ndn::time::* routines for what you want to accomplish.  For example, ndn::time::steady_clock::now()

When inside ndnSIM, these time routines are internally redirected to the simulation time and if you happen to compile your code as normal NFD application, it will use actual time information.


> On Feb 27, 2019, at 4:09 AM, mdparamartha95 at students.itb.ac.id <mailto:mdparamartha95 at students.itb.ac.id> wrote:
> Hi,
> I Would like to record referenced time of each data attach into Content Store, 
> How to get the current time in NFD?
> Script " (Simulator::Now().ToDouble(Time::S)) ".
> Doesn't work in NFD environment.
> Any help very appreciate,
> Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190227/3aa127fa/attachment.html>

More information about the ndnSIM mailing list