Calculate load time in index.js

Do it previously in window-bootstrap caused several things to not be
included such as requiring coffee script and atom shell modules.

Now it is a much more accurate representation of on load time.
This commit is contained in:
Kevin Sawicki
2014-10-13 11:17:26 -04:00
parent 42040f8a9d
commit 6a6c7b1852
2 changed files with 8 additions and 5 deletions

View File

@@ -1,14 +1,10 @@
# Like sands through the hourglass, so are the days of our lives.
startTime = Date.now()
require './window'
Atom = require './atom'
window.atom = Atom.loadOrCreate('editor')
atom.initialize()
atom.startEditorWindow()
window.atom.loadTime = Date.now() - startTime
console.log "Window load time: #{atom.getWindowLoadTime()}ms"
# Workaround for focus getting cleared upon window creation
windowFocused = ->