Colobot
Public Member Functions | List of all members
CSystemUtilsLinux Class Reference
Inheritance diagram for CSystemUtilsLinux:
Inheritance graph
[legend]

Public Member Functions

void Init () override
 Performs platform-specific initialization.
 
SystemDialogResult SystemDialog (SystemDialogType type, const std::string &title, const std::string &message) override
 Displays a system dialog.
 
void GetCurrentTimeStamp (SystemTimeStamp *stamp) override
 Returns a time stamp associated with current time.
 
long long TimeStampExactDiff (SystemTimeStamp *before, SystemTimeStamp *after) override
 Returns the exact (in nanosecond units) difference between two timestamps. More...
 
std::string GetSaveDir () override
 Returns the save dir location.
 
void Usleep (int usec) override
 Sleep for given amount of microseconds.
 
- Public Member Functions inherited from CSystemUtils
TEST_VIRTUAL SystemDialogResult ConsoleSystemDialog (SystemDialogType type, const std::string &title, const std::string &message)
 Displays a fallback system dialog using console.
 
TEST_VIRTUAL SystemTimeStampCreateTimeStamp ()
 Creates a new time stamp object.
 
TEST_VIRTUAL void DestroyTimeStamp (SystemTimeStamp *stamp)
 Destroys a time stamp object.
 
TEST_VIRTUAL void CopyTimeStamp (SystemTimeStamp *dst, SystemTimeStamp *src)
 Copies the time stamp from src to dst.
 
TEST_VIRTUAL float TimeStampDiff (SystemTimeStamp *before, SystemTimeStamp *after, SystemTimeUnit unit=STU_SEC)
 Returns a difference between two timestamps in given time unit. More...
 
virtual std::string GetDataPath ()
 Returns the data path (containing textures, levels, helpfiles, etc)
 
virtual std::string GetLangPath ()
 Returns the translations path.
 

Additional Inherited Members

- Static Public Member Functions inherited from CSystemUtils
static std::unique_ptr< CSystemUtilsCreate ()
 Creates system utils for specific platform.
 

Member Function Documentation

long long CSystemUtilsLinux::TimeStampExactDiff ( SystemTimeStamp before,
SystemTimeStamp after 
)
overridevirtual

Returns the exact (in nanosecond units) difference between two timestamps.

The difference is after - before.

Implements CSystemUtils.


The documentation for this class was generated from the following files: