def __get_timestamp(self):
        """
        @return: The next timestamp to use for events.  This is guaranteed to be monotonically increasing.
        @rtype: long
        """
        global __last_time_stamp__

        base_timestamp = long(time.time() * 1000000000L)
        if __last_time_stamp__ is not None and base_timestamp <= __last_time_stamp__:
            base_timestamp = __last_time_stamp__ + 1L
        __last_time_stamp__ = base_timestamp
        return base_timestamp
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/scalyr_client.py/AddEventsRequest.__get_timestamp/original