pub fn read_clock(data: &[u8]) -> Result<Clock, ProgramError>Expand description
Read the Clock sysvar from account data.
The Clock sysvar is 40 bytes:
[slot:8][epoch_start_timestamp:8][epoch:8][leader_schedule_epoch:8][unix_timestamp:8]
pub fn read_clock(data: &[u8]) -> Result<Clock, ProgramError>Read the Clock sysvar from account data.
The Clock sysvar is 40 bytes:
[slot:8][epoch_start_timestamp:8][epoch:8][leader_schedule_epoch:8][unix_timestamp:8]