mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Return what function returns from measure
This commit is contained in:
@@ -99,9 +99,10 @@ windowAdditions =
|
||||
|
||||
measure: (description, fn) ->
|
||||
start = new Date().getTime()
|
||||
fn()
|
||||
value = fn()
|
||||
result = new Date().getTime() - start
|
||||
console.log description, result
|
||||
value
|
||||
|
||||
window[key] = value for key, value of windowAdditions
|
||||
window.startup()
|
||||
|
||||
Reference in New Issue
Block a user