use sizeof(currentTime) in the two lines above