Configures generic time related features. This is used as a part of DappetizerConfigUsingDb.

Example

Sample usage (all properties specified explicitly) within dappetizer.config.ts file:

import { DappetizerConfigUsingDb } from '@tezos-dappetizer/database';

const config: DappetizerConfigUsingDb = {
time: {
longExecutionWarningMillis: 1_000,
},
... // Other config parts.
};

export default config;

Hierarchy

  • TimeDappetizerConfig

Properties

longExecutionWarningMillis?: number

The time in milliseconds after which a warning is logged for an operation that takes loo long to execute.

Limits

An integer greater than 1.

Default

3_000 (3 seconds)

Generated using TypeDoc