remove more unused files, rename system files

This commit is contained in:
Mathieu Lacage
2006-09-04 12:28:04 +02:00
parent 0e8ba3a194
commit 554cb205f4
13 changed files with 27 additions and 477 deletions

View File

@@ -19,22 +19,22 @@
* Author: Mathieu Lacage <mathieu.lacage.inria.fr>
*/
#ifndef WALL_CLOCK_MS_H
#define WALL_CLOCK_MS_H
#ifndef SYSTEM_WALL_CLOCK_MS_H
#define SYSTEM_WALL_CLOCK_MS_H
namespace ns3 {
class WallClockMs {
class SystemWallClockMs {
public:
WallClockMs ();
~WallClockMs ();
SystemWallClockMs ();
~SystemWallClockMs ();
void start (void);
unsigned long long end (void);
private:
class WallClockMsPrivate *m_priv;
class SystemWallClockMsPrivate *m_priv;
};
}; // namespace ns3
#endif /* WALL_CLOCK_MS_H */
#endif /* SYSTEM_WALL_CLOCK_MS_H */

View File

@@ -19,12 +19,12 @@
* Author: Mathieu Lacage <mathieu.lacage.inria.fr>
*/
#include "wall-clock-ms.h"
#include "system-wall-clock-ms.h"
#include <sys/time.h>
namespace ns3 {
class WallClockMsPrivate {
class SystemWallClockMsPrivate {
public:
void start (void);
unsigned long long end (void);
@@ -34,14 +34,14 @@ private:
};
void
WallClockMsPrivate::start (void)
SystemWallClockMsPrivate::start (void)
{
struct timezone tz;
gettimeofday (&m_start_tv, &tz);
}
unsigned long long
WallClockMsPrivate::end (void)
SystemWallClockMsPrivate::end (void)
{
struct timezone tz;
gettimeofday (&m_end_tv, &tz);
@@ -50,23 +50,23 @@ WallClockMsPrivate::end (void)
return end - start;
}
WallClockMs::WallClockMs ()
: m_priv (new WallClockMsPrivate ())
SystemWallClockMs::SystemWallClockMs ()
: m_priv (new SystemWallClockMsPrivate ())
{}
WallClockMs::~WallClockMs ()
SystemWallClockMs::~SystemWallClockMs ()
{
delete m_priv;
m_priv = 0;
}
void
WallClockMs::start (void)
SystemWallClockMs::start (void)
{
m_priv->start ();
}
unsigned long long
WallClockMs::end (void)
SystemWallClockMs::end (void)
{
return m_priv->end ();
}

View File

@@ -19,11 +19,11 @@
* Author: Mathieu Lacage <mathieu.lacage.inria.fr>
*/
#include "wall-clock-ms.h"
#include "system-wall-clock-ms.h"
namespace ns3 {
class WallClockMsPrivate {
class SystemWallClockMsPrivate {
public:
void start (void);
unsigned long long end (void);
@@ -31,33 +31,33 @@ private:
};
void
WallClockMsPrivate::start (void)
SystemWallClockMsPrivate::start (void)
{
}
unsigned long long
WallClockMsPrivate::end (void)
SystemWallClockMsPrivate::end (void)
{
return 0;
}
WallClockMs::WallClockMs ()
: m_priv (new WallClockMsPrivate ())
SystemWallClockMs::SystemWallClockMs ()
: m_priv (new SystemWallClockMsPrivate ())
{}
WallClockMs::~WallClockMs ()
SystemWallClockMs::~SystemWallClockMs ()
{
delete m_priv;
m_priv = 0;
}
void
WallClockMs::start (void)
SystemWallClockMs::start (void)
{
m_priv->start ();
}
unsigned long long
WallClockMs::end (void)
SystemWallClockMs::end (void)
{
return m_priv->end ();
}