OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2005 INRIA | 3 * Copyright (c) 2005 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mathieu Lacage <mathieu.lacage.inria.fr> | 18 * Author: Mathieu Lacage <mathieu.lacage.inria.fr> |
19 */ | 19 */ |
20 | 20 |
21 #include "system-wall-clock-ms.h" | 21 #include "system-wall-clock-ms.h" |
22 | 22 #include "log.h" |
23 #include <ctime> | 23 #include <ctime> |
24 | 24 |
25 /** | 25 /** |
26 * \file | 26 * \file |
27 * \ingroup system | 27 * \ingroup system |
28 * ns3::SystemWallClockMs and ns3::SystemWallClockMsPrivate implementation. | 28 * ns3::SystemWallClockMs and ns3::SystemWallClockMsPrivate implementation. |
29 */ | 29 */ |
30 | 30 |
31 namespace ns3 { | 31 namespace ns3 { |
32 | 32 |
| 33 NS_LOG_COMPONENT_DEFINE("SystemWallClockMs"); |
| 34 ·· |
33 /** | 35 /** |
34 * \ingroup system | 36 * \ingroup system |
35 * \brief System-dependent implementation for SystemWallClockMs | 37 * \brief System-dependent implementation for SystemWallClockMs |
36 */ | 38 */ |
37 class SystemWallClockMsPrivate { | 39 class SystemWallClockMsPrivate { |
38 public: | 40 public: |
39 /** \copydoc SystemWallClockMs::Start() */ | 41 /** \copydoc SystemWallClockMs::Start() */ |
40 void Start (void); | 42 void Start (void); |
41 /** \copydoc SystemWallClockMs::End() */ | 43 /** \copydoc SystemWallClockMs::End() */ |
42 int64_t End (void); | 44 int64_t End (void); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 175 } |
174 | 176 |
175 int64_t | 177 int64_t |
176 SystemWallClockMs::GetElapsedSystem (void) const | 178 SystemWallClockMs::GetElapsedSystem (void) const |
177 { | 179 { |
178 NS_LOG_FUNCTION (this); | 180 NS_LOG_FUNCTION (this); |
179 return m_priv->GetElapsedSystem (); | 181 return m_priv->GetElapsedSystem (); |
180 } | 182 } |
181 | 183 |
182 } // namespace ns3 | 184 } // namespace ns3 |
OLD | NEW |