moved timespec initialization