File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
common/src/main/kotlin/com/lambda Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,15 @@ import com.lambda.module.ModuleRegistry
1515import com.lambda.sound.SoundRegistry
1616import com.lambda.util.Communication.ascii
1717import kotlin.system.measureTimeMillis
18+ import kotlin.time.DurationUnit
19+ import kotlin.time.toDuration
1820
1921object Loader {
22+ private val started = System .currentTimeMillis()
23+
24+ val runtime: String
25+ get() = " ${(System .currentTimeMillis() - started).toDuration(DurationUnit .MILLISECONDS )} "
26+
2027 private val loadables = listOf (
2128 ModuleRegistry ,
2229 CommandRegistry ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import com.lambda.Lambda.mc
55import com.lambda.command.CommandRegistry
66import com.lambda.command.LambdaCommand
77import com.lambda.config.Configuration
8+ import com.lambda.core.Loader
89import com.lambda.event.EventFlow
910import com.lambda.module.Module
1011import com.lambda.module.ModuleRegistry
@@ -166,6 +167,7 @@ object Communication {
166167 literal(Lambda .SYMBOL )
167168 }
168169 literal(" v${Lambda .VERSION } \n " )
170+ literal(" Runtime: ${Loader .runtime} \n " )
169171 literal(" Modules: ${ModuleRegistry .modules.size} \n " )
170172 literal(" Commands: ${CommandRegistry .commands.size} \n " )
171173 literal(
You can’t perform that action at this time.
0 commit comments