Giter Site home page Giter Site logo

stopwatch's Introduction

一个简单的秒表程序

  • 起因:找遍了应用商店,也没发现一个真正的计时器,除了苹果自带的计时器,好像都没有计次之后显示分段时间的软件,都是只显示总时间,想要知道上一个分段化了多少时间就很不方便,于是就有了这个东西。
  • 应用场景:最好用的就是做题或者补作业的时候用了,该计时器可以准确记录每一题/每一页所花的时间,还能推算出以当前速度还有多少时间完成作业。
  • 介绍:
    • 运行程序,不需要任何第三方库,装了python就能运行。
    • 创建一个文件名,开始计时后,根目录下会生成一个txt文件,作为日志,记录窗口输出的内容。
    • 指定一个分段按键,通常为space,如果怕误触,可以换成f12之类。按下这个键,就会“计次”一次。
    • 制定当前题号和总数:当前做到了第几题/第几页,总共有几题/几页
    • 输出内容:包括当前时间、总时间、分段时间、预估剩余时间等内容

写题目的时候就可以写完一题,拍一下空格键,就会记录下每一题所用的时间,做题的时候也能推算出做完全部题目需要多长时间,结束后,可以通过日志文件查看哪一题用的时间比较长。实测可以提升一点紧迫感,加快一些效率。 PS:其中有添加音效的代码,可以看根据需要去掉注释,添加自己的音效。还有超时提醒功能,超过一段时间没有按下分段按钮就会发声音提醒。

stopwatch's People

Contributors

mrnobdyyy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.