From e44aa459d5eb5af2f868dc490e4d05efca308915 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sat, 8 Mar 2025 10:18:05 -0500 Subject: [PATCH] Update display-startup-time in the README.md file --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6f1029..5d37fbd 100644 --- a/README.md +++ b/README.md @@ -1095,9 +1095,10 @@ To measure and display the time taken for Emacs to start, you can use the follow Add the following to your `~/.emacs.d/pre-early-init.el` file: ```emacs-lisp (defun display-startup-time () - "Display the startup duration and number of garbage collections." - (message "Emacs loaded in %.2f seconds with %d garbage collections." + "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)) + (float-time (time-subtract after-init-time before-init-time)) gcs-done)) (add-hook 'emacs-startup-hook #'display-startup-time 100)