Add -lrt
Added time functions and variables.