[][src]Module solana_sdk::timing

The timing module provides std::time utility functions.

Constants

DEFAULT_NUM_TICKS_PER_SECOND
DEFAULT_SLOTS_PER_EPOCH
DEFAULT_TICKS_PER_SLOT
MAX_HASH_AGE_IN_SECONDS

The time window of recent block hash values that the bank will track the signatures of over. Once the bank discards a block hash, it will reject any transactions that use that recent_blockhash in a transaction. Lowering this value reduces memory consumption, but requires clients to update its recent_blockhash more frequently. Raising the value lengthens the time a client must wait to be certain a missing transaction will not be processed by the network.

MAX_RECENT_BLOCKHASHES
MAX_TRANSACTION_FORWARDING_DELAY

More delay is expected if CUDA is not enabled (as signature verification takes longer)

NUM_CONSECUTIVE_LEADER_SLOTS

Functions

duration_as_ms
duration_as_ns
duration_as_s
duration_as_us
timestamp