Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark smbus2 with view to replacing smbus #28

Closed
rm-hull opened this issue Nov 13, 2016 · 0 comments
Closed

Benchmark smbus2 with view to replacing smbus #28

rm-hull opened this issue Nov 13, 2016 · 0 comments

Comments

@rm-hull
Copy link
Owner

rm-hull commented Nov 13, 2016

See https://github.com/kplindegaard/smbus2

Timer class:

import time

class Timer:    
    def __enter__(self):
        self.start = time.clock()
        return self

    def __exit__(self, *args):
        self.end = time.clock()
        self.interval = self.end - self.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant