easy-api.ts
Version:
A powerful library to create your own API with ease.
1 lines • 453 B
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0});let APIFunction_1=require("../../classes/structures/APIFunction");class ExecutionTime extends APIFunction_1.APIFunction{name="$executionTime";description="Returns the execution time of the code.";parameters=[];usage="$executionTime";returns=APIFunction_1.ParamType.Number;aliases=["$execTime"];compile=!0;async run(e){return(performance.now()-e.startTime).toString()}}exports.default=ExecutionTime;