Eclipse SUMO - Simulation of Urban MObility
SysUtils.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// A few system-specific functions
16
/****************************************************************************/
17
#ifndef SysUtils_h
18
#define SysUtils_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
25
#include <string>
26
27
// ===========================================================================
28
// class definitions
29
// ===========================================================================
33
class
SysUtils
{
34
public
:
38
static
long
getCurrentMillis
();
39
40
41
#ifdef _MSC_VER
42
47
static
long
getWindowsTicks();
48
#endif
49
50
52
static
unsigned
long
runHiddenCommand
(
const
std::string& cmd);
53
};
54
55
#endif
56
57
/****************************************************************************/
58
SysUtils::runHiddenCommand
static unsigned long runHiddenCommand(const std::string &cmd)
run a shell command without popping up any windows (particuarly on win32)
Definition:
SysUtils.cpp:64
SysUtils
A few system-specific functions.
Definition:
SysUtils.h:33
SysUtils::getCurrentMillis
static long getCurrentMillis()
Returns the current time in milliseconds.
Definition:
SysUtils.cpp:39
src
utils
common
SysUtils.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16