I need to write a program that return the time and amount of memory used by a specific function and prints it on the console, I already know how to measure the time used by the function, but I don't know how to do the same for the memory used.
I would like to get a value to be printed on the console so I cannot use external monitors. Currently I can not use another OS so this must be done on windows.
I looked online but I didn't find nor understand how can I do this.
Thank you.