def timestamp():
    if on_windows:
        rv = "%.6f" % (
            (datetime.datetime.utcnow() -
             datetime.datetime(1970, 1, 1)).total_seconds(),)
    else:
        rv = datetime.datetime.now().strftime("%s.%f")
    return rv