2019-03-05 09:53:56 -08:00
|
|
|
// @flow
|
|
|
|
|
2019-06-12 14:36:05 -07:00
|
|
|
// TODO: These constants should be removed in favor of reading them out of a
|
|
|
|
// Syscall account
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ignore
|
|
|
|
*/
|
2020-06-15 18:32:57 +08:00
|
|
|
export const NUM_TICKS_PER_SECOND = 160;
|
2019-06-12 14:36:05 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @ignore
|
|
|
|
*/
|
2020-06-15 18:32:57 +08:00
|
|
|
export const DEFAULT_TICKS_PER_SLOT = 64;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ignore
|
|
|
|
*/
|
|
|
|
export const NUM_SLOTS_PER_SECOND =
|
|
|
|
NUM_TICKS_PER_SECOND / DEFAULT_TICKS_PER_SLOT;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ignore
|
|
|
|
*/
|
|
|
|
export const MS_PER_SLOT = 1000 / NUM_SLOTS_PER_SECOND;
|