Fixed time functions, and saperated android and linux functions.