{"id":5357,"date":"2016-06-29T11:23:00","date_gmt":"2016-06-29T15:23:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=5357"},"modified":"2016-06-29T11:23:44","modified_gmt":"2016-06-29T15:23:44","slug":"timers","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=5357","title":{"rendered":"Timers"},"content":{"rendered":"<p> The latest video from Rainer K\u00f6nig discusses <a href=\"https:\/\/www.youtube.com\/watch?v=lxkPeJS6keY&amp;index=17&amp;list=PLVtKhBrRV_ZkPnBtt_TD1Cs9PJlU0IIdE\">countdown and relative timers<\/a>. These aren&#8217;t the clock-in, clock-out timers\u2014used to log time spent time spent on tasks\u2014that you may be used to. They&#8217;re a separate facility that I didn&#8217;t know about before I watched the video. <\/p>\n<p> You start the first type of timer, the countdown timer, by typing \u3010<kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>;<\/kbd>\u3011 after which Org asks you to specify a time and then starts counting down from that time. When the time expires, Org mode gives you an expiration notice. In the video, Org pops up a message box. In my Emacs configuration, I get the message in the minibuffer. In either case, the current time remaining is shown on the mode line. <\/p>\n<p> As K\u00f6nig explains, this is useful if you want to work on a task for a specific amount of time before moving on to something else. You can pause and restart the timer with \u3010<kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>,<\/kbd>\u3011 and stop it entirely with \u3010<kbd>Ctrl<\/kbd>+<kbd>u<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>,<\/kbd>\u3011. <\/p>\n<p> The second type of timer, the relative timer, is useful for taking notes with times as some event is taking place. For example, if you are taking notes on K\u00f6nig&#8217;s video, you can start a relative timer and have your notes keyed to the video by the elapsed time. It&#8217;s the sort of thing that Sacha Chua does with the notes for her videos, although I don&#8217;t know if she uses relative timers to do it. <\/p>\n<p> To start a relative timer, you type \u3010<kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>0<\/kbd>\u3011 and the timer starts from 0. You can input a starting time by preceding the sequence with the universal argument. <\/p>\n<p> When the timer is running, the current time is shown in the mode line and you can insert the time as a string with \u3010<kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>.<\/kbd>\u3011. More usefully, you can make an entry in an item list with the current time by typing \u3010<kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>-<\/kbd>\u3011. You can add subsequent entries in the list by typing \u3010<kbd>Meta<\/kbd>+<kbd>Return<\/kbd>\u3011 as usual. That&#8217;s perfect for the type of transcripts that we discussed above. <\/p>\n<p> You can use the same sequences to pause\/restart\/stop the timer as you did with the countdown timer. If you&#8217;re using the excellent <a href=\"https:\/\/github.com\/justbur\/emacs-which-key\">which-key<\/a>, it will prompt you for these sequences if you can remember the \u3010<kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd>\u3011 prefix. That&#8217;s not too hard because many Org actions of this sort (including the clock-in\/out commands) start with the same prefix. <\/p>\n<p> This is a really excellent video and you should definitely watch it. It&#8217;s only seven and a half minutes so it&#8217;s easy to find time for it. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest video from Rainer K\u00f6nig discusses countdown and relative timers. These aren&#8217;t the clock-in, clock-out timers\u2014used to log time spent time spent on tasks\u2014that you may be used to. They&#8217;re a separate facility that I didn&#8217;t know about before &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=5357\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18,4],"class_list":["post-5357","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs","tag-org-mode"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5357"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5357\/revisions"}],"predecessor-version":[{"id":5358,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5357\/revisions\/5358"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}