Ultrasonic flowmeter for seawater and oil