src/simulator/simulator.cc
changeset 2981 982a6f364d2c
parent 2979 3d39dd617b8d
child 2987 4fe951be604c
equal deleted inserted replaced
2980:98b75bde4403 2981:982a6f364d2c
   409 void Simulator::EnableLogTo (char const *filename)
   409 void Simulator::EnableLogTo (char const *filename)
   410 {
   410 {
   411   GetPriv ()->EnableLogTo (filename);
   411   GetPriv ()->EnableLogTo (filename);
   412 }
   412 }
   413 
   413 
       
   414 #ifdef NS3_LOG_ENABLE
   414 static void
   415 static void
   415 TimePrinter (std::ostream &os)
   416 TimePrinter (std::ostream &os)
   416 {
   417 {
   417   os << Simulator::Now ();
   418   os << Simulator::Now ();
   418 }
   419 }
       
   420 #endif /* NS3_LOG_ENABLE */
   419 
   421 
   420 Ptr<SimulatorPrivate>
   422 Ptr<SimulatorPrivate>
   421 Simulator::GetPriv (void)
   423 Simulator::GetPriv (void)
   422 {
   424 {
   423   if (m_priv == 0) 
   425   if (m_priv == 0)