Created timespec manipulation functions.