Skip to content

ecaldwell/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timer

A Python package to assist with measuring script running time.

Sample usage

Stopwatch

import time
from timer.stopwatch import Stopwatch
myStopwatch = Stopwatch()

myStopwatch.start()
time.sleep(2)
myStopwatch.lap()
time.sleep(3)
myStopwatch.stop()

print myStopwatch.summary
Total time: 5.0
Lap 1: 2.0
Current Lap: 3.0

Timestamp

from timer import timestamp

print timestamp.pretty()
2013-04-01 11:45:58AM

print timestamp.raw()
20130401114606

About

A python library for measuring how long it takes scripts or other processes to run.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages