Changed asctime to clock_asctime to avoid colliding with the libc version