Code file to get flight start and end time

Hi,
I want to customize QGC.
For each flight I want to add Flight entry to the db like
FlightStartTime, FlightEndTime, TotalTime, so on

Can anyone let me know the exact file from where I can get this data?