According to Les Rulz Officiale as specified in Page 27/42 of the Sporting Stakes/Rules of the 100th Tour Of France (English half of the rule book):
ARTICLE 14 Timekeeping
[COLOR= rgb(255, 0, 0)]At a finish, all the riders in the same peloton[/COLOR]
[COLOR= rgb(255, 0, 0)]are credited with the same finish time. [/COLOR]At each
clear break, the timekeeper records a new time.
He officiates until the arrival of the “broomwagonâ€.
He also records the times of riders
who arrive outside the permitted times and
delivers this list, with the corresponding times,
to the Chairman of the Stewards’ Committee. [COLOR= rgb(255, 0, 0)]All[/COLOR]
[COLOR= rgb(255, 0, 0)]times registered by the timekeeper are rounded[/COLOR]
[COLOR= rgb(255, 0, 0)]down to the nearest second[/COLOR], and only these
rounded times are taken into consideration for
the general ranking. [COLOR= rgb(255, 0, 0)]The ranking for time trial[/COLOR]
[COLOR= rgb(255, 0, 0)]stages is determined by using hundredths of[/COLOR]
[COLOR= rgb(255, 0, 0)]a second, as several riders may indeed finish[/COLOR]
[COLOR= rgb(255, 0, 0)]within a second or less of each other.[/COLOR]
[COLOR= rgb(255, 0, 0)]
http://www.letour.com/le-tour/2013/docs/TDF13_reglement_BD.pdf[/COLOR]
With the modern timing chip on the bike, timing can be tracked to fractions of a second. Bike swaps/changes require the use of the camera.