def nanotime(s=None):
    if s is not None:
        return int(s) * 1000000000
    return time.time() * 1000000000
convert seconds to nanoseconds. If s is None, current time is
dataset/ETHPy150Open benoitc/gaffer/gaffer/util.py/nanotime