CppCommon 1.0.5.0
C++ Common Library
Loading...
Searching...
No Matches
memory_memory.cpp

Memory management example

#include "memory/memory.h"
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "Total RAM: " << CppCommon::Memory::RamTotal() << " bytes" << std::endl;
std::cout << "Free RAM: " << CppCommon::Memory::RamFree() << " bytes" << std::endl;
return 0;
}
static int64_t RamFree()
Free RAM in bytes.
Definition memory.cpp:59
static int64_t RamTotal()
Total RAM in bytes.
Definition memory.cpp:33
Memory management definition.