I want to know the elapsed time taken to run my C++ program. For example, when I compile and run a C++ program like this:
g++ -o myprogram myprogram.cpp
then:
myprogram
How can I do this from the Command Prompt (CMD) without including time.h
in my C++ source file? (I am using Windows 10 64-bit)