Implement delta time, compilation modes, and improve test.sh

This was originaly separate commits, but problems with git including
 executables despite them being in gitignore (I still don't know why
 it decided to spontanteously start honoring the gitignore either)
 made me back up and recommit without it.
add optimization settings to test.sh