What is the meaning of [by a whisker]

The runner was far ahead for most of the race, but at the end she won only by a whisker (a very short distance).