do something by a whisker
by a whisker
By an extremely short or slim margin (of distance, time, or another measure). They're just about to close the gates! It looks like we made the flight by a whisker. The race was neck and neck till the very end, but Sally won it by a whisker.