Have loading timer include time to require

This commit is contained in:
John Wiegley 2012-06-17 05:12:13 -05:00
parent bf6c23044b
commit 4bd492f606

View file

@ -305,15 +305,15 @@
t))
`(if (and ,(or predicate t)
,requires-test)
(if ,(if (stringp name)
`(load ,name t)
`(require ',name nil t))
(with-elapsed-timer
,(format "Loading package %s" name-string)
,init-body
,config-body
t)
(message "Could not load package %s" ,name-string))))))))
(with-elapsed-timer
,(format "Loading package %s" name-string)
(if (not ,(if (stringp name)
`(load ,name t)
`(require ',name nil t)))
(message "Could not load package %s" ,name-string)
,init-body
,config-body
t))))))))
(put 'use-package 'lisp-indent-function 1)