added eventGate code ; now linking rt library also for clock_gettime() function
chkpt: wired event gate