Roger Federer took less than 2 and a half hours to beat Australia's Marinko Matosevic and remains on course for an 18th Grand Slam title.