Update README.md

This commit is contained in:
James Cherti
2025-03-18 15:55:29 -04:00
parent dda8db9333
commit a3df684c51

View File

@@ -1093,9 +1093,9 @@ Add the following to your `~/.emacs.d/pre-early-init.el` file:
```emacs-lisp
(defun display-startup-time ()
"Display the startup time and number of garbage collections."
(message "Emacs loaded in %.2f seconds (Init only: %.2fs) with %d garbage collections."
(time-to-seconds (time-since before-init-time))
(message "Emacs init loaded in %.2f seconds (Full emacs-startup: %.2fs) with %d garbage collections."
(float-time (time-subtract after-init-time before-init-time))
(time-to-seconds (time-since before-init-time))
gcs-done))
(add-hook 'emacs-startup-hook #'display-startup-time 100)