www.ns.nl => choose "Amsterdam Centraal"to "Schiphol". Then you'll see all the train timetable. The train stops inside the airport, you just need to take the stairs/elevator up for your departure gate, no extra transportation needed. 20 minutes as JJ said. Very convenient !