Browse Source

Added startup time benchmark

custom
Raphael Roberts 3 years ago
parent
commit
7c2af92b4b
  1. 11
      personal/preload/0-startup-time.el

11
personal/preload/0-startup-time.el

@ -0,0 +1,11 @@
;; Startup time
(defun efs/display-startup-time ()
(message
"Emacs loaded in %s with %d garbage collections."
(format
"%.2f seconds"
(float-time
(time-subtract after-init-time before-init-time)))
gcs-done))
(add-hook 'emacs-startup-hook #'efs/display-startup-time)
Loading…
Cancel
Save