added timer functions, using clock_gettime
also used a couples of long and double datatypes