move timespec to common code