[Emacs] Remove uptime tracker

It causes more issues than it solves really
This commit is contained in:
Lucien Cartier-Tilet 2022-01-07 03:37:05 +01:00
parent 0e76b9f06e
commit 243386c9e4
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -259,28 +259,6 @@ files by default.
auto-save-default t) auto-save-default t)
#+end_src #+end_src
Im also interested in keeping track of how fast Emacs loads on my
computer, as well as for how long I keep it open. The values are
stored in a ~.csv~ with three columns:
- The date when Emacs was closed
- Emacs init time
- Emacs uptime
#+begin_src emacs-lisp
(defvar my/emacs-log-file-time (expand-file-name "emacs-time.csv" user-emacs-directory))
(defun my/write-emacs-loadtime-and-uptime ()
(with-temp-buffer
(find-file my/emacs-log-file-time)
(goto-char (point-max))
(insert (format "%s,%s,%s\n"
(string-trim (shell-command-to-string "date +%F-%H-%M-%S"))
(emacs-init-time "%f")
(emacs-uptime "%dd %hh %mm %ss")))
(save-buffer)))
(add-to-list 'kill-emacs-hook #'my/write-emacs-loadtime-and-uptime)
#+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq window-combination-resize t) ; take new window space from all other windows (setq window-combination-resize t) ; take new window space from all other windows
#+end_src #+end_src