https://github.com/nsisodiya/pythontimer
Python Timer Class
https://github.com/nsisodiya/pythontimer
Last synced: 4 months ago
JSON representation
Python Timer Class
- Host: GitHub
- URL: https://github.com/nsisodiya/pythontimer
- Owner: nsisodiya
- Created: 2011-04-10T00:00:14.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-10T00:49:46.000Z (over 14 years ago)
- Last Synced: 2025-01-25T10:41:24.717Z (6 months ago)
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This is Pythoin Timer Class
import PythonTimer
t = PythonTimer.TickTockTimer()
t.StartTimer()
t.GetTime()
3.9744668006896973You can pause/unpause the Timer
t.Pause()
t.UnPause()You can get Time Inverval between 2 times. like
t.Tick()
call some function()
print t.Tick() Time elapsed since last tick
call some function()
print t.Tick() Time elapsed since last tick