src/core/model/watchdog.cc
changeset 9134 7a750f032acd
parent 7169 358f71a624d8
child 10968 2d29fee2b7b8
--- a/src/core/model/watchdog.cc	Sat Nov 10 18:45:37 2012 +0100
+++ b/src/core/model/watchdog.cc	Sat Nov 10 19:16:38 2012 +0100
@@ -18,6 +18,9 @@
  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
  */
 #include "watchdog.h"
+#include "log.h"
+
+NS_LOG_COMPONENT_DEFINE ("Watchdog");
 
 namespace ns3 {
 
@@ -26,16 +29,19 @@
     m_event (),
     m_end (MicroSeconds (0))
 {
+  NS_LOG_FUNCTION_NOARGS ();
 }
 
 Watchdog::~Watchdog ()
 {
+  NS_LOG_FUNCTION (this);
   delete m_impl;
 }
 
 void
 Watchdog::Ping (Time delay)
 {
+  NS_LOG_FUNCTION (this << delay);
   Time end = Simulator::Now () + delay;
   m_end = std::max (m_end, end);
   if (m_event.IsRunning ())
@@ -48,6 +54,7 @@
 void
 Watchdog::Expire (void)
 {
+  NS_LOG_FUNCTION (this);
   if (m_end == Simulator::Now ())
     {
       m_impl->Invoke ();