Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Memory example
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <windows.h> #include <psapi.h> double getUsedMemoryMB() { PROCESS_MEMORY_COUNTERS pmc; GetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(pmc)); return static_cast<double>(pmc.WorkingSetSize) / static_cast<double>(1024 * 1024); } int main() { std::cout << getUsedMemoryMB(); }
run
|
edit
|
history
|
help
0
define_xml_tags
empty base bug
ntohl
accessing private of different type of template
calling convention is part of type(?)
MyCodeWindows
LinkedList
Zero
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?
rstring