From a79dc637d60b33032e951f5338fdd9b6a47a5b46 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Fri, 3 Jun 2011 12:09:02 +0800 Subject: removed nxt-python-fantom hack, it is committed upstream --- nxt-python-fantom/examples/latency.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 nxt-python-fantom/examples/latency.py (limited to 'nxt-python-fantom/examples/latency.py') diff --git a/nxt-python-fantom/examples/latency.py b/nxt-python-fantom/examples/latency.py deleted file mode 100644 index b4b1f26..0000000 --- a/nxt-python-fantom/examples/latency.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python - -import time -import nxt.locator -from nxt.sensor import * - -b = nxt.locator.find_one_brick() - -#Touch sensor latency test -touch = Touch(b, PORT_1) -start = time.time() -for i in range(100): - touch.get_sample() -stop = time.time() -print 'touch latency: %s ms' % (1000 * (stop - start) / 100.0) - -#Ultrasonic sensor latency test -ultrasonic = Ultrasonic(b, PORT_4) -start = time.time() -for i in range(100): - ultrasonic.get_sample() -stop = time.time() -print 'ultrasonic latency: %s ms' % (1000 * (stop - start) / 100.0) -- cgit v1.2.3