Reputation: 24754
In C++, with this:
std::time_t first = time(NULL);
/* .. code .. */
std::time_t second = time(NULL);
std::cout << "Seg : " << difftime(second,first) << std::endl;
I can determine my program's execution duration.
Can I determine its memory consumption at different points through the program?
Upvotes: 1
Views: 194