I would like to be able to time and/or test my programs using a similar program to the ones found in online judges. Does anyone know of a good free judge I can use?
You could simply use time and diff
To set a time-limit for a running program, you can set an alarm() and kill() your children
Yup if you use linux on the terminal, you can just type 'time' followed by the location of your .exe file and it should tell you how long it ran.
$ time ./Sum Numbers.txt
real time is what you want to know
Last edited on