Information
g++:g++ -o gnu driver-sample.cpp List.cpp -Wall -Wextra -ansi -pedantic -O2 -g -Wconversion
Microsoft:cl /W4 /WX /Zi /MT /EHsc /Oy- /Ob0 /Fems.exe driver-sample.cpp List.cpp
If you want to time your program, use the time program (from Cygwin):foo 3
To run all of the tests, pass the number 0 or just leave it blank:c:\cygwin\bin\time -p foo 3
You need to provide the entire path to the time program because there is a built-in time command in Windows (which isn't useful for this).c:\cygwin\bin\time -p foo
If you're working in Linux or MacOS, you should just do:
time ./foo