Add profiling information

Note: had to link tests with Unix for time-keeping when profiling is
used.