Since ubuntu does not support the recent posix standard for getting time I have had to switch to the previous method for obtaining it.