/Stopwatch2Txt

A simple stopwatch application that writes timestamp to txt file (usage example: OBS streaming). keyword: stopwatch to text / stopwatch to txt

Primary LanguagePythonMIT LicenseMIT

Stopwatch2Txt

Keywords:
stopwatch to text
stopwatch to txt
for streaming
stopwatch output text file

A simple stopwatch application that writes timestamp to txt file (usage example: OBS streaming).

  • It requires Python3
    (but, imo, it would be simple to make this work with Python2, if you can modify the script a tiny bit.
    e.g. print('Hello') -> print 'hello'
  • It works for macOS.
    I did not test for linux environment yet but I guess it would work. Please let me know through issue tracker.

preview This is an example of using Stopwatch2Txt. (OBS text capture : 'Read text from file' linked to '~/Stopwatch2Txt/stopwatch.txt')

How to use?

  1. Download the whole repository using git clone https://github.com/dqgthb/Stopwatch2Txt.git

  2. Go inside the directory. Find 'secs.txt'.

  3. Replace (manually) the first line of 'secs.txt' with your preferred starting seconds (in integer). To initialize the stopwatch, this should be '0'.
    However, if you want a very specific starting point such as '01:05:12', type '3912' (= 1 * 3600 + 5 * 60 + 12).

  4. Run the python code 'stopwatch.py' by typing the following command inside the terminal:

    python3 stopwatch.py
  5. If you want to pause the stopwatch, press "Ctrl c".

  6. If you want to resume the stopwatch, type python3 stopwatch.py again in the terminal.

  7. If you want to reset the stopwatch, press "Ctrl c" and replace the first line of 'secs.txt' to 0. (as already explained above).

  8. That's it! If you check the 'stopwatch.txt' file, you will see that the file is constantly being updated. You can use this wherever you want. e.g. OBS text source