What exactly are the laps times at the end of the race showing me?

Sorry if this has been brought I before, I didn’t see anything in a search. After each race we always get the lap time leaderboards showing up with the top performers and some of my friends. What exactly are those lap times? Do they the best laps within the class or car? Or do they show the best laps within the league you are currently in? If I just finish a C class hot hatch race, does it show just the hot hatch times or any C class times? Also how do I know if the lap time for my friends is a real lap time or a drivatar lap time?

Thanks

its the lap times for that class (basically the rivals times)

and yes your friends times is his times not drivatar

As far as I know, the avatar-times are not showing up in the leaderboards. Only friends who really has driven the track are listed.
You get your best lap on the track within the class. If a exclamation mark is showing up in front of the time, it means your driving wasn’t clean.
Not sure, if in this case your time is showing up to your friends.

GT666GT: The time shown at the end is the best time in the Class on that particular track for that gamertag. Only the “best” is listed for the particular Class, even though you or the other drivers may have driven quicker times in different vehicles in different Classes. There is no sorting by make/model of vehicle, nor any differentiation between a “hot lap,” a Rivals event time or one set in an online race against friends. It is simply the best time by Class.