Zum Inhalt springen

integrations/robots/utils

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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.