Bits & pieces

Summary: Added a command to let a file be opened by the OS, and some other small bits and pieces to make Flipper browser compatible.

Reviewed By: lblasa

Differential Revision: D32721748

fbshipit-source-id: a4ad1c2f662f4651ddf6c20c57e5af1e123914a8
This commit is contained in:
Michel Weststrate
2021-12-08 04:25:28 -08:00
committed by Facebook GitHub Bot
parent f5f9608098
commit eab4f0d3d3
11 changed files with 58 additions and 48 deletions

View File

@@ -235,8 +235,7 @@ RootElement.displayName = 'SandyAppRootElement';
function registerStartupTime(logger: Logger) {
// track time since launch
const [s, ns] = process.hrtime();
const launchEndTime = s * 1e3 + ns / 1e6;
const launchEndTime = performance.now();
const renderHost = getRenderHostInstance();
renderHost.onIpcEvent('getLaunchTime', (launchStartTime: number) => {
logger.track('performance', 'launchTime', launchEndTime - launchStartTime);