Add time.c from ingenic 2.6.31.3 patch