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-2018 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 #include <config.h>
25 
26 #include <string>
27 
28 // ===========================================================================
29 // class definitions
30 // ===========================================================================
34 class SysUtils {
35 public:
39  static long getCurrentMillis();
40 
41 
42 #ifdef _MSC_VER
43 
48  static long getWindowsTicks();
49 #endif
50 
51 
53  static unsigned long runHiddenCommand(const std::string& cmd);
54 };
55 
56 #endif
57 
58 /****************************************************************************/
59 
static unsigned long runHiddenCommand(const std::string &cmd)
run a shell command without popping up any windows (particuarly on win32)
Definition: SysUtils.cpp:64
A few system-specific functions.
Definition: SysUtils.h:34
static long getCurrentMillis()
Returns the current time in milliseconds.
Definition: SysUtils.cpp:39