OpenMPCD
Functions
OpenMPCD::Utility::HostInformation Namespace Reference

Provides functions that give information about the host the program is being executed on. More...

Functions

const std::string getHostname ()
 Returns the hostname of the machine this program is being executed on. More...
 
const std::string getCurrentUTCTimeAsString ()
 Returns the current time in UTC as a string, formatted as YYYY-MM-DDTHH:MM:SS. More...
 

Detailed Description

Provides functions that give information about the host the program is being executed on.

Function Documentation

◆ getCurrentUTCTimeAsString()

const std::string OpenMPCD::Utility::HostInformation::getCurrentUTCTimeAsString ( )

Returns the current time in UTC as a string, formatted as YYYY-MM-DDTHH:MM:SS.

Warning
This function may call std::gmtime, so its interal std::tm object may be changed. Furthermore, this implies that this function might not be thread-safe.

Definition at line 21 of file HostInformation.cpp.

◆ getHostname()

const std::string OpenMPCD::Utility::HostInformation::getHostname ( )

Returns the hostname of the machine this program is being executed on.

Definition at line 16 of file HostInformation.cpp.