Refactored Profiler::callTimerFunc() to be easier to read.

- Refactored Profiler::callTimerFunc() to be easier to read.
- Added phpunit as a require-dev composer dependency.
- Added appropriate .gitignore entries for the composer vendor and bin directories.