diff --git a/examples/kv/kvrun.py b/examples/kv/kvrun.py index 581bb0957..0ccc6a8a1 100644 --- a/examples/kv/kvrun.py +++ b/examples/kv/kvrun.py @@ -1,10 +1,14 @@ #!/usr/bin/env python from kivy.app import App +from kivy.clock import Clock from kivy.lang import Builder class KvApp(App): + def _print_fps(self, *largs): + print 'FPS:', Clock.get_fps() def build(self): + Clock.schedule_interval(self._print_fps, 1) return Builder.load_file(self.options['filename']) if __name__ == '__main__':