# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import time
+
from savemysugar.cumulative_average import cumulative_average
from savemysugar.Modem import Modem
-import time
class Ring(object):
for i in range(5):
print()
- print("Attempt: %s" % (i + 1))
+ print("Call: %s" % (i + 1))
outgoing_modem.send_command("ATDT" + destination_number + ";")
dial_time = time.time()
avg_call_setup_time = cumulative_average(avg_call_setup_time,
i + 1,
call_setup_time)
- uncertainty = (max_call_setup_time - min_call_setup_time) / 2.
print("Call setup time: %f" % call_setup_time)
print("Min call setup time: %f" % min_call_setup_time)
print("Max call setup time: %f" % max_call_setup_time)
print("Average call setup time: %f" % avg_call_setup_time)
- print("Call setup time uncertainty: %f" % uncertainty)
print()
call_time = hangup_time - dial_time