move console.time/timeEnd to same file

This commit is contained in:
Feross Aboukhadijeh
2016-05-11 17:56:20 +02:00
parent dfe8c3eb6b
commit 1eb5504029
3 changed files with 4 additions and 3 deletions

View File

@@ -1,2 +1 @@
console.time('init')
require('./main')

View File

@@ -1,3 +1,5 @@
console.time('init')
var electron = require('electron')
var app = electron.app
@@ -67,6 +69,7 @@ function init () {
app.on('ipcReady', function () {
log('Command line args:', argv)
processArgv(argv)
console.timeEnd('init')
})
app.on('before-quit', function (e) {

View File

@@ -25,10 +25,9 @@ var vlcProcess
function init () {
ipcMain.on('ipcReady', function (e) {
windows.main.show()
app.ipcReady = true
app.emit('ipcReady')
windows.main.show()
console.timeEnd('init')
})
ipcMain.on('ipcReadyWebTorrent', function (e) {