From a1fee77f41c3ce06558e34187c67c240f9d53e3a Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 13 Jun 2024 19:26:12 +0200 Subject: [PATCH] feat: show startup time --- init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.el b/init.el index 6ea8dae..8b21a0d 100644 --- a/init.el +++ b/init.el @@ -7,6 +7,17 @@ (require 'functions) (require 'elpaca-loader) +;; 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) (my-use-package no-littering :ensure (:wait t) :demand t -- 2.48.1