Function cassandra_cpp_sys::cass_timestamp_gen_monotonic_new [] [src]

pub unsafe extern "C" fn cass_timestamp_gen_monotonic_new(
) -> *mut CassTimestampGen

Creates a new monotonically increasing timestamp generator. This generates microsecond timestamps with the sub-millisecond part generated using a counter. The implementation guarantees that no more than 1000 timestamps will be generated for a given clock tick even if shared by multiple session objects. If that rate is exceeded then a warning is logged and timestamps stop incrementing until the next clock tick.

Note: This generator is thread-safe and can be shared by multiple sessions.

@cassandra{2.1+}

@public @memberof CassTimestampGen

@return Returns a timestamp generator that must be freed.

@see cass_timestamp_gen_free()