콘텐츠로 이동

integrations/robots/utils

이 콘텐츠는 아직 번역되지 않았습니다.

function getFileSizeInKilobytes(filename: URL): number

Defined in: studiocms/packages/studiocms/src/integrations/robots/utils.ts:23^

Calculates the size of a file in kilobytes.

URL

The URL of the file to get the size of.

number

The size of the file in kilobytes.


function measureExecutionTime(callback: () => void): number

Defined in: studiocms/packages/studiocms/src/integrations/robots/utils.ts:9^

Measures the execution time of a given callback function.

() => void

The function whose execution time is to be measured.

number

The execution time of the callback function in milliseconds.