Tour of California is a stage race that is won based on total time. So you add up the time it takes each person to complete each stage, and whoever has the lowest time at the end wins. If you finish in a big group, the whole group gets the same time, which is why the time gaps at the end are usually pretty close.