integrations/robots/utils
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Functions
Section titled “Functions”getFileSizeInKilobytes()
Section titled “getFileSizeInKilobytes()”function getFileSizeInKilobytes(filename: URL): number
Defined in: studiocms/packages/studiocms/src/integrations/robots/utils.ts:23^
Calculates the size of a file in kilobytes.
Parameters
Section titled “Parameters”filename
Section titled “filename”URL
The URL of the file to get the size of.
Returns
Section titled “Returns”number
The size of the file in kilobytes.
measureExecutionTime()
Section titled “measureExecutionTime()”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.
Parameters
Section titled “Parameters”callback
Section titled “callback”() => void
The function whose execution time is to be measured.
Returns
Section titled “Returns”number
The execution time of the callback function in milliseconds.