src/core/system-wall-clock-ms.h
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 150 663120712cd9
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
mathieu@150
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
mathieu@9
     2
/*
mathieu@9
     3
 * Copyright (c) 2005 INRIA
mathieu@9
     4
 *
mathieu@9
     5
 * This program is free software; you can redistribute it and/or modify
mathieu@9
     6
 * it under the terms of the GNU General Public License version 2 as
mathieu@9
     7
 * published by the Free Software Foundation;
mathieu@9
     8
 *
mathieu@9
     9
 * This program is distributed in the hope that it will be useful,
mathieu@9
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
mathieu@9
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
mathieu@9
    12
 * GNU General Public License for more details.
mathieu@9
    13
 *
mathieu@9
    14
 * You should have received a copy of the GNU General Public License
mathieu@9
    15
 * along with this program; if not, write to the Free Software
mathieu@9
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
mathieu@9
    17
 *
mathieu@9
    18
 * Author: Mathieu Lacage <mathieu.lacage.inria.fr>
mathieu@9
    19
 */
mathieu@9
    20
mathieu@34
    21
#ifndef SYSTEM_WALL_CLOCK_MS_H
mathieu@34
    22
#define SYSTEM_WALL_CLOCK_MS_H
mathieu@9
    23
mathieu@16
    24
namespace ns3 {
mathieu@9
    25
mathieu@60
    26
/**
mathieu@60
    27
 * \brief measure wall-clock time in milliseconds
mathieu@60
    28
 */
mathieu@34
    29
class SystemWallClockMs {
mathieu@9
    30
public:
mathieu@150
    31
  SystemWallClockMs ();
mathieu@150
    32
  ~SystemWallClockMs ();
mathieu@9
    33
mathieu@150
    34
  /**
mathieu@150
    35
   * Start a measure.
mathieu@150
    36
   */
mathieu@150
    37
  void Start (void);
mathieu@150
    38
  /**
mathieu@150
    39
   * \returns the measured elapsed wall clock time since 
mathieu@150
    40
   *          ns3::SystemWallClockMs::start was invoked.
mathieu@150
    41
   *
mathieu@150
    42
   * It is possible to start a new measurement with ns3::SystemWallClockMs::start
mathieu@150
    43
   * after this method returns.
mathieu@150
    44
   */
mathieu@150
    45
  unsigned long long End (void);
mathieu@9
    46
private:
mathieu@150
    47
  class SystemWallClockMsPrivate *m_priv;
mathieu@9
    48
};
mathieu@9
    49
mathieu@16
    50
}; // namespace ns3
mathieu@9
    51
mathieu@34
    52
#endif /* SYSTEM_WALL_CLOCK_MS_H */