Get current time only once per image