Use (emacs-init-time) instead of manual benchmark
This commit is contained in:
parent
1fbf7c0afa
commit
ceece44fec
2 changed files with 1 additions and 4 deletions
|
@ -89,9 +89,7 @@
|
||||||
'face 'font-lock-keyword-face)
|
'face 'font-lock-keyword-face)
|
||||||
(concat
|
(concat
|
||||||
"\n\n"
|
"\n\n"
|
||||||
(s-trim-right (s-center (max 0 (- width 2))
|
(s-trim-right (s-center (max 0 (- width 2)) (format "Loaded in %s" (emacs-init-time))))))))
|
||||||
(format "Loaded in %.3fs"
|
|
||||||
(float-time (time-subtract after-init-time emacs-start-time)))))))))
|
|
||||||
(back-to-indentation)
|
(back-to-indentation)
|
||||||
(doom|update-scratch-buffer nil t)
|
(doom|update-scratch-buffer nil t)
|
||||||
|
|
||||||
|
|
1
init.el
1
init.el
|
@ -28,7 +28,6 @@
|
||||||
;;
|
;;
|
||||||
;;; License: MIT
|
;;; License: MIT
|
||||||
|
|
||||||
(defconst emacs-start-time (current-time))
|
|
||||||
(load (concat user-emacs-directory "core/core"))
|
(load (concat user-emacs-directory "core/core"))
|
||||||
|
|
||||||
(doom :theme 'doom-one
|
(doom :theme 'doom-one
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue