Put start/end time in main.
Cast malloc'd memory.