blob: 8bfc4f958534bf81eef5b4de30dfbc69902b7733 [file] [log] [blame]
Alexander Afanasyevb989b122013-07-10 17:15:46 -07001/** -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Alexander Afanasyev
5 *
6 * BSD license, See the doc/LICENSE file for more information
7 *
8 * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
9 */
10
11#ifndef NDN_COMMON_H
12#define NDN_COMMON_H
13
Alexander Afanasyev92136012013-07-16 20:36:30 -070014#include "ns3/nstime.h"
15#include "ns3/simulator.h"
16
17#define NDNSIM_MODE 1
18
Alexander Afanasyevb989b122013-07-10 17:15:46 -070019#define NDN_NAMESPACE_BEGIN namespace ns3 { namespace ndn {
20#define NDN_NAMESPACE_END } /*ndn*/ } /*ns3*/
21
Alexander Afanasyev79206512013-07-27 16:49:12 -070022/**
23 * @brief NS-3 namespace
24 */
25namespace ns3 {
26
27/**
28 * @brief ndnSIM namespace
29 */
30namespace ndn {
31}
32
33}
34
Alexander Afanasyev92136012013-07-16 20:36:30 -070035NDN_NAMESPACE_BEGIN
36
37typedef Time TimeInterval;
38
39namespace time
40{
41
42inline Time
43NowUnixTimestamp ()
44{
45 return Simulator::Now ();
46}
47
48}
49
50NDN_NAMESPACE_END
51
Alexander Afanasyevb989b122013-07-10 17:15:46 -070052#endif // NDN_COMMON_H