Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
problem_solution5
atoi on hex
Is min defined?
RecursiveDivide
c++ pure apstraction
Competitive - Algorithm for max number of superior characters
algorithm_1
copy
vector of bool
msvc compile optimization demo...
Please log in to post a comment.