Add a test for timing routines.

- The C++11 chrono library works well.
- setitimer does not work as of now.
Add .gitignore files to ignore .o and bin files.