OpenM++ runtime library (libopenm)
omOS.h
Go to the documentation of this file.
1
5// Copyright (c) 2013-2023 OpenM++
6// This code is licensed under the MIT license (see LICENSE.txt for details)
7
8#ifndef OM_H_OS_H
9#define OM_H_OS_H
10
11#include <tuple>
12#include "omHelper.h"
13
14namespace openm
15{
17 extern int64_t getMilliseconds(void);
18
20 extern const std::string getDefaultLocaleName(void);
21
34 extern std::tuple<uint64_t, uint64_t> getProcessMemorySize(void);
35}
36
37#endif // OM_H_OS_H
openM++ namespace
Definition: log.h:32
std::tuple< uint64_t, uint64_t > getProcessMemorySize(void)
return current process memory size and max peak memory size, in bytes.
Definition: os.cpp:11
const std::string getDefaultLocaleName(void)
get user prefered locale name: en-CA en-CA or empty "" string on error
Definition: os.cpp:50
int64_t getMilliseconds(void)
return number of milliseconds since epoch to measure intervals
Definition: os.cpp:34
OpenM++ common helper utilities.