timespec: new function current_timespec