How to find kernal time of real device using flutter?

Viewed 38

Please, I want to find the kernel time of my application and I want to test it on a real device. Is there any way to find it by using flutter? 

Also, I use this command: flutter run --trace-startup --profile. It is shown in the console, but I want it to show in the UI.

1 Answers

Use this plugin ntp: ^2.0.0

 DateTime startDate = await NTP.now();
 print('NTP DateTime: ${startDate}');
Related