times() system call implementation