[][src]Function ontio_std::runtime::timestamp

pub fn timestamp() -> u64

Get timestamp in current block

Example

let res = runtime::timestamp();