How to Use Kotlin's Timing API

preview_player
Показать описание
Kotlin's Timing API is stable as of Kotlin 1.9, and it offers some great ways to both measure and specify time. In this video, we'll take a tour through the main features of this API so that you can start using durations and time marks like a pro!

Wall Clocks vs Monotonic Clocks:

New to Kotlin? Start here:

00:00 Introduction
00:11 Basic Time Measurement
02:57 All About Durations
04:17 Durations - Creating By Hand
05:56 Durations - Getting Values
07:34 Durations - Components
09:16 Durations - ISO 8601 Strings
10:36 Advanced Time Measurement
13:15 Time Sources
14:48 TestTimeSource
16:12 Wrap-up

#kotlin #androiddevelopment
Рекомендации по теме
Комментарии
Автор

What are your thoughts about Kotlin's Timing API? Do you have any questions about it?

typealias
Автор

So glad I discovered your channel by reading your article on when to use sequences! Your content it so well structured and presented, a true educator. Thank you!

dim_k
Автор

Your videos are very amazing and useful, they contains the hidden treasures of Kotlin, Thanks a lot!

hosenalzuhile
Автор

I"m here because your blog sent me to your linkedin that sent me to your YT :D I just wanted to thank you i loooove your blog it's helping me so much understand things i was never able to understand (as lambda functions, generic variance etc). You're awesome really really excellent THANK YOU

leas
Автор

I would love to see a video about generics in kotlin

d_chem_
Автор

These last two videos were really helpful. Thank you!

One question: When injecting the TimeSource as a constructor argument, is there any problem with defining the source (TimeSource.Monotonic) as a Single(ton), e.g. in Koin?
Or should it rather be created anew for each instance?

FeuFeuPatta
Автор

Duration object is such an obvious thing and yet everyone keeps just throwing integers around and hoping everyone interprets them correctly. At least outside of Kotlin.

vegai