A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
system-wall-clock-ms.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2005 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage.inria.fr>
7
*/
8
9
#ifndef SYSTEM_WALL_CLOCK_MS_H
10
#define SYSTEM_WALL_CLOCK_MS_H
11
12
#include <stdint.h>
13
14
/**
15
* \file
16
* \ingroup system
17
* ns3::SystemWallClockMs declaration.
18
*/
19
20
namespace
ns3
21
{
22
23
/**
24
* \ingroup system
25
* \brief Measure elapsed wall clock time in milliseconds.
26
*/
27
class
SystemWallClockMs
28
{
29
public
:
30
SystemWallClockMs
();
31
~SystemWallClockMs
();
32
33
/**
34
* Start a measure.
35
*/
36
void
Start
();
37
/**
38
* \brief Stop measuring the time since Start() was called.
39
* \returns the measured elapsed wall clock time (in milliseconds) since
40
* Start() was invoked.
41
*
42
* It is possible to start a new measurement with Start() after
43
* this method returns.
44
*
45
* Returns \c int64_t to avoid dependency on \c clock_t in ns-3 code.
46
*/
47
int64_t
End
();
48
49
/**
50
* \returns the measured elapsed wall clock time (in milliseconds) since
51
* Start() was invoked.
52
*
53
* Returns \c int64_t to avoid dependency on \c clock_t in ns-3 code.
54
*/
55
int64_t
GetElapsedReal
()
const
;
56
/**
57
* \returns the measured elapsed 'user' wall clock time (in milliseconds)
58
* since Start() was invoked.
59
*
60
* Returns \c int64_t to avoid dependency on \c clock_t in ns-3 code.
61
*/
62
int64_t
GetElapsedUser
()
const
;
63
/**
64
* \returns the measured elapsed 'system' wall clock time (in milliseconds)
65
* since Start() was invoked.
66
*
67
* Returns \c int64_t to avoid dependency on \c clock_t in ns-3 code.
68
*/
69
int64_t
GetElapsedSystem
()
const
;
70
71
private
:
72
class
SystemWallClockMsPrivate
*
m_priv
;
//!< The implementation.
73
};
74
75
}
// namespace ns3
76
77
#endif
/* SYSTEM_WALL_CLOCK_MS_H */
ns3::SystemWallClockMs
Measure elapsed wall clock time in milliseconds.
Definition
system-wall-clock-ms.h:28
ns3::SystemWallClockMs::m_priv
class SystemWallClockMsPrivate * m_priv
The implementation.
Definition
system-wall-clock-ms.h:72
ns3::SystemWallClockMs::SystemWallClockMs
SystemWallClockMs()
Definition
system-wall-clock-ms.cc:124
ns3::SystemWallClockMs::End
int64_t End()
Stop measuring the time since Start() was called.
Definition
system-wall-clock-ms.cc:145
ns3::SystemWallClockMs::GetElapsedReal
int64_t GetElapsedReal() const
Definition
system-wall-clock-ms.cc:152
ns3::SystemWallClockMs::Start
void Start()
Start a measure.
Definition
system-wall-clock-ms.cc:138
ns3::SystemWallClockMs::GetElapsedUser
int64_t GetElapsedUser() const
Definition
system-wall-clock-ms.cc:159
ns3::SystemWallClockMs::~SystemWallClockMs
~SystemWallClockMs()
Definition
system-wall-clock-ms.cc:130
ns3::SystemWallClockMs::GetElapsedSystem
int64_t GetElapsedSystem() const
Definition
system-wall-clock-ms.cc:166
ns3::SystemWallClockMsPrivate
System-dependent implementation for SystemWallClockMs.
Definition
system-wall-clock-ms.cc:31
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
core
model
system-wall-clock-ms.h
Generated on Wed Oct 9 2024 01:03:23 for ns-3 by
1.11.0