From ebb6ebca2af50fde45d170761ca75d1cc42c0fd1 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Tue, 16 Sep 2014 13:21:35 -0700 Subject: [PATCH] Move windowloadTime into metadata section --- src/atom.coffee | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/atom.coffee b/src/atom.coffee index a74568474..2d2db208e 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -240,6 +240,16 @@ class Atom extends Model getLoadSettings: -> @constructor.getLoadSettings() + # Public: Get the time taken to completely load the current window. + # + # This time include things like loading and activating packages, creating + # DOM elements for the editor, and reading the config. + # + # Returns the {Number} of milliseconds taken to load the window or null + # if the window hasn't finished loading yet. + getWindowLoadTime: -> + @loadTime + ### Section: Managing The Atom Window ###