mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 12:08:34 +00:00
Fix job deletion bug, add performance tests.
This commit is contained in:
committed by
Nicholas Tinsley
parent
86cf8200b5
commit
36dface175
@@ -23,9 +23,15 @@ class EventTimer {
|
||||
|
||||
private val durationsByGroup: MutableMap<String, MutableList<Long>> = mutableMapOf()
|
||||
|
||||
private val startTime = System.nanoTime()
|
||||
private var startTime = System.nanoTime()
|
||||
private var lastTimeNanos: Long = startTime
|
||||
|
||||
fun reset() {
|
||||
startTime = System.nanoTime()
|
||||
lastTimeNanos = startTime
|
||||
durationsByGroup.clear()
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates an event in the specified group has finished.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user