File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
src/main/kotlin/app/example Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ repositories {
10
10
plugins {
11
11
id(" org.springframework.boot" ) version " 3.4.2-SNAPSHOT"
12
12
id(" io.spring.dependency-management" ) version " 1.1.7"
13
- kotlin(" jvm" ) version " 2.1.0 "
14
- kotlin(" plugin.spring" ) version " 2.1.0 "
13
+ kotlin(" jvm" ) version " 2.1.10 "
14
+ kotlin(" plugin.spring" ) version " 2.1.10 "
15
15
}
16
16
dependencies {
17
17
implementation(" org.springframework.boot:spring-boot-starter-web" )
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.11 .1-bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.12 .1-bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration
5
5
import org.springframework.boot.runApplication
6
6
import org.springframework.context.annotation.Bean
7
7
import org.springframework.scheduling.annotation.EnableScheduling
8
+ import java.time.Duration
9
+ import java.time.Instant
8
10
import java.util.concurrent.ExecutorService
9
11
import java.util.concurrent.Executors.newVirtualThreadPerTaskExecutor
12
+ import kotlin.time.measureTime
10
13
11
14
@EnableScheduling
12
15
@SpringBootConfiguration
@@ -20,5 +23,8 @@ class App {
20
23
}
21
24
22
25
fun main (args : Array <String >) {
26
+ val a = Instant .now()
27
+ val b = Instant .now()
28
+ Duration .between(a, b).toMillis();
23
29
runApplication<App >(* args)
24
30
}
You can’t perform that action at this time.
0 commit comments