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 /****************************************************************************/
14 // A few system-specific functions
15 /****************************************************************************/
16 #ifndef SysUtils_h
17 #define SysUtils_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 
24 #include <string>
25 
26 // ===========================================================================
27 // class definitions
28 // ===========================================================================
32 class SysUtils {
33 public:
37  static long getCurrentMillis();
38 
39 
40 #ifdef _MSC_VER
41 
46  static long getWindowsTicks();
47 #endif
48 
49 
51  static unsigned long runHiddenCommand(const std::string& cmd);
52 };
53 
54 #endif
55 
56 /****************************************************************************/
57 
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:63
SysUtils
A few system-specific functions.
Definition: SysUtils.h:32
SysUtils::getCurrentMillis
static long getCurrentMillis()
Returns the current time in milliseconds.
Definition: SysUtils.cpp:38