From c5516a13aad78677729a30435b23b4607dffdc29 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 29 Nov 2022 15:53:42 -0500 Subject: emacsconf-stream-show-playback-info: keep track of mpv position --- emacsconf.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacsconf.el') diff --git a/emacsconf.el b/emacsconf.el index 214e896..a5a9a0e 100644 --- a/emacsconf.el +++ b/emacsconf.el @@ -1366,5 +1366,9 @@ tracks with the ID in the cdr of that list." (interactive (list (read-file-name "File: " (expand-file-name "./" emacsconf-cache-dir) nil t))) (find-file (expand-file-name filename emacsconf-cache-dir))) +(defun emacsconf-format-seconds (seconds) + (concat (format-seconds "%.2m:%.2s" (floor seconds)) + "." (format "%03d" (% (floor (* 1000 seconds)) 1000)))) + (provide 'emacsconf) ;;; emacsconf.el ends here -- cgit v1.2.3