Apart from the previously pointed out error your missing a } before
long microsecondsToInches(long microseconds)