Fixed index error in processTime.

Also made it a lot more concise, and fixed formatting (converted tabs to
spaces).