import { log, chalk } from '@hlink/core';
const time = async (ctx, next) => {
    const start = Date.now();
    return next().then(() => {
        log.info(chalk.gray(ctx.originalUrl), ctx.status, '耗时', Date.now() - start, 'ms');
    });
};
export default time;
