mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-03-01 17:59:39 -05:00
Breaking changes:
'Gift': changed from class to enum, so now you can handle
incoming gifts in switch
`Events`
- new:
onGiftComboFinished
- Removed:
onGiftBrodcast
- Rename:
onGiftMessage -> onGift
onRoomPinMessage -> onRoomPin
onRoomMessage -> onRoom
onLinkMessage -> onLink
onBarrageMessage -> onBarrage
onPollMessage -> onPoll
onShopMessage -> onShop
onDetectMessage -> onDetect
`GiftManager`
added:
registerGift
findById
findByName
getGifts
removed:
getActiveGifts
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package io.github.jwdeveloper.tiktok.utils;
|
||||
|
||||
public class Stopwatch {
|
||||
private long startTime;
|
||||
private long stopTime;
|
||||
|
||||
public void start() {
|
||||
startTime = System.nanoTime();
|
||||
}
|
||||
|
||||
public long stop() {
|
||||
stopTime = System.nanoTime();
|
||||
return getElapsedTime();
|
||||
}
|
||||
|
||||
public long getElapsedTime() {
|
||||
return stopTime - startTime;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user