bittensor.utils.formatting#
Functions#
|
|
|
|
|
Converts number of blocks into number of hours, minutes, seconds. |
|
|
|
|
|
|
|
|
|
Normalize a list of u64 values so that their sum equals u64::MAX (2^64 - 1). |
Module Contents#
- bittensor.utils.formatting.convert_blocks_to_time(blocks, block_time=12)[source]#
Converts number of blocks into number of hours, minutes, seconds. :param blocks: number of blocks :param block_time: time per block, by default this is 12 :return: tuple containing number of hours, number of minutes, number of seconds