Really, that long? Back when LMS still did 1000km races 15 years ago, the LMP1s were able to cover 1000km with little over 5 hours on Euro circuits. Sometimes it was bit more depending on circuit and safety cars
On average in one go with some pitstop for tires it would take 1000/f1 distance x 2023 GP time = 1000/308 * 95.333 min = 309,5 min = 5h 15 min
Add some time for a driver change and a brake pad change, refueling and it will take about 5,5 hrs. Half an hour faster than a Hypercar.
Or when you take the fastest lap 1.36 min or 96 sec in 2019 for a 5.513km track length 1000/5.513 x 96 sec = 17413s = 290 min = 4.8 hrs at continous lap record speed (which is impossible) so caclulate with a 100s lap = just over 5 hrs.
If you would compare Imola.
WEC Imola 6hrs 205 laps times 4909m track length (1006,34km) in just over 6hrs
vs
F1 Imola 309,049km in 1:25,25 hrs
F1 at race speed no extra fuel pitstops would do 1006,34 km in 4 hours and 38 minutes.