# Path: stator/carbon.py
# class CantCreateConnection(Exception):
# class Carbon(object):
#     def __init__(self, host, port=2003):
#     def add(self, key, value, timestamp=None):
# def init_env():
# def add(key, value, timestamp=None):


import random
from time import sleep, time
from stator import carbon
from time import clock


def main():
    carbon.init_env()
    while True:
        v1 = random.randrange(10, 100)
        v2 = random.randrange(100, 1000)/10.0
        start = time()

# Path: stator/carbon.py
# class CantCreateConnection(Exception):
# class Carbon(object):
#     def __init__(self, host, port=2003):
#     def add(self, key, value, timestamp=None):
# def init_env():
# def add(key, value, timestamp=None):


# Path: examples/carbon.py
import random
from time import sleep, time
from stator import carbon
from time import clock



def main():
    carbon.init_env()
    while True:
        v1 = random.randrange(10, 100)
        v2 = random.randrange(100, 1000)/10.0
        start = time()

        carbon.add("py.stator.random.int", v1)