feat: add start time
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
8f5882ff0a
commit
9121683e77
@ -1,8 +1,10 @@
|
||||
import '@ms/nashorn'
|
||||
|
||||
import { plugin, server, task } from '@ms/api'
|
||||
import { DefaultContainer as container, injectable, inject, postConstruct } from '@ms/container'
|
||||
import { PluginManagerImpl } from '@ms/plugin'
|
||||
import { DefaultContainer as container, injectable, inject, postConstruct } from '@ms/container'
|
||||
|
||||
let startTime = new Date().getTime();
|
||||
|
||||
@injectable()
|
||||
class MiaoScriptCore {
|
||||
@ -22,6 +24,7 @@ class MiaoScriptCore {
|
||||
console.console(`§cMiaoScript start error please contact plugin author!`);
|
||||
console.ex(error);
|
||||
}
|
||||
console.log('MiaoScript engine loading completed... Done (' + (new Date().getTime() - startTime) / 1000 + 's)!');
|
||||
return () => this.disable();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user