Skip to main content

read_clock

Function read_clock 

Source
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]