2019-06-12 14:36:05 -07:00
|
|
|
// TODO: These constants should be removed in favor of reading them out of a
|
|
|
|
// Syscall account
|
|
|
|
|
|
|
|
/**
|
2021-03-14 20:01:35 -07:00
|
|
|
* @internal
|
2019-06-12 14:36:05 -07:00
|
|
|
*/
|
2020-06-15 03:32:57 -07:00
|
|
|
export const NUM_TICKS_PER_SECOND = 160;
|
2019-06-12 14:36:05 -07:00
|
|
|
|
|
|
|
/**
|
2021-03-14 20:01:35 -07:00
|
|
|
* @internal
|
2019-06-12 14:36:05 -07:00
|
|
|
*/
|
2020-06-15 03:32:57 -07:00
|
|
|
export const DEFAULT_TICKS_PER_SLOT = 64;
|
|
|
|
|
|
|
|
/**
|
2021-03-14 20:01:35 -07:00
|
|
|
* @internal
|
2020-06-15 03:32:57 -07:00
|
|
|
*/
|
|
|
|
export const NUM_SLOTS_PER_SECOND =
|
|
|
|
NUM_TICKS_PER_SECOND / DEFAULT_TICKS_PER_SLOT;
|
|
|
|
|
|
|
|
/**
|
2021-03-14 20:01:35 -07:00
|
|
|
* @internal
|
2020-06-15 03:32:57 -07:00
|
|
|
*/
|
|
|
|
export const MS_PER_SLOT = 1000 / NUM_SLOTS_PER_SECOND;
|