Code time is time spent in your editor (such as writing, editing, reading, or browsing code).
Code time is measured in sessions. A session begins when you become active in your editor and ends after 15 minutes of inactivity.
Events that count toward your coding activity include focusing your editor, opening and closing files, and opening a new project. All events that count toward active code time, such as adding or removing a line, also count toward code time—active code time is a subset of code time.
For example, if you’re writing code, but leave your editor to research an example on Stack Overflow, and return to writing code within 15 minutes, the entire elapsed time will count toward your code time. If, however, you are coding but get distracted for 20 minutes by Slack messages, that 20-minute period will not count toward your code time.