如何使用颤动找到真实设备的内核时间?

发布于 2025-01-24 23:19:28 字数 136 浏览 2 评论 0原文

请,我想找到应用程序的内核时间,我想在真实的设备上对其进行测试。有什么方法可以通过使用颤音来找到它? 

另外,我使用此命令:Flutter Run-Trace-Startup-Profile。它在控制台中显示,但我希望它显示在UI中。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

刘备忘录 2025-01-31 23:19:28

使用此插件 ntp: ^2.0.0.0

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

Use this plugin ntp: ^2.0.0

 DateTime startDate = await NTP.now();
 print('NTP DateTime: ${startDate}');
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文