CalicoKitty
Programmer
I'm writing a program that analyzes several algorithms and need to find out how much memory is used and how much real-time has elapsed. Can I just use sbrk(0) before and after each algorithm to analyze the memory usage? Does anybody have any suggestions for the elapsed real-time usage? I can find CPU time. It's unbelievable how the small things can hang a programmer up!