Added timing to main app task
This commit is contained in:
parent
e3abe03456
commit
ffeb4b1eb4
@ -75,14 +75,17 @@ object ScalaFXHelloWorld extends JFXApp with MainModule {
|
||||
}
|
||||
// _ <- fib1.join
|
||||
} yield ()
|
||||
application.runToFuture
|
||||
application.timed.runToFuture
|
||||
.onComplete(res =>
|
||||
res match {
|
||||
case Failure(exception) => {
|
||||
println("Application start failed. Reason -")
|
||||
exception.printStackTrace()
|
||||
}
|
||||
case Success(value) => println("Application started Successfully")
|
||||
case Success((duration, _)) =>
|
||||
println(
|
||||
s"Application started successfully in ${duration.toSeconds} seconds"
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user