UNPKG

studiocms

Version:

Astro Native CMS for AstroDB. Built from the ground up by the Astro community.

15 lines (14 loc) 532 B
/** * Measures the execution time of a given callback function. * * @param callback - The function whose execution time is to be measured. * @returns The execution time of the callback function in milliseconds. */ export declare function measureExecutionTime(callback: () => void): number; /** * Calculates the size of a file in kilobytes. * * @param filename - The URL of the file to get the size of. * @returns The size of the file in kilobytes. */ export declare function getFileSizeInKilobytes(filename: URL): number;