A system and method for measuring the flow rate of a liquid in a tube non-invasively has a heating element that generates energy that is applied to the liquid to produce a heat marker that is detected by a temperature sensor located at a known distance from the heating element and the flow rate is calculated from measuring the travel time of the heat marker from the heating element to the sensor. A second temperature sensor measures the ambient temperature of the liquid before the heat marker is produced and detection of the heat marker is made on the basis of the difference between the ambient temperatures and the temperature of the heat marker.