searchTimeElapsed function

Returns the amount of time elapsed