Log app start time similarly to window start time

This commit is contained in:
Kevin Sawicki
2013-09-24 20:48:51 -07:00
parent e6f7ed9862
commit 31c03258e9
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
startTime = new Date().getTime()
autoUpdater = require 'auto-updater'
crashReporter = require 'crash-reporter'
delegate = require 'atom-delegate'
@@ -53,6 +55,7 @@ delegate.browserMainParts.preMainMessageLoopRun = ->
AtomApplication = require 'atom-application'
AtomApplication.open(args)
console.log("App load time #{new Date().getTime() - startTime}ms")
global.devResourcePath = path.join(app.getHomeDir(), 'github', 'atom')

View File

@@ -1,8 +1,9 @@
# Like sands through the hourglass, so are the days of our lives.
date = new Date().getTime()
startTime = new Date().getTime()
require './atom'
require './window'
window.setUpEnvironment('editor')
window.startEditorWindow()
console.log "Load time: #{new Date().getTime() - date}"
console.log "Window load time: #{new Date().getTime() - startTime}ms"