Leetcode Timer

Start a timer whenever a user loads a problem at Leetcode.com

نووسەر
Utsav
Daily installs
0
Total installs
133
Ratings
0 0 0
وەشان
1.2
Created
2020-05-18
Updated
2020-05-19
Size
2.42 KB
مۆڵەت
نییە
Applies to

Modify line number 17 to either var option = 1; or var option = 2;.
option = 1: The time starts from the moment you open a problem url and continues forever.
option = 2: The time starts from 0 every time you open a problem url and continues only till the window is open. Every time you reload the window the timer will restart from 0.