Fix job deletion bug, add performance tests.

This commit is contained in:
Greyson Parrelli
2024-07-18 10:12:33 -04:00
committed by Nicholas Tinsley
parent 86cf8200b5
commit 36dface175
6 changed files with 264 additions and 7 deletions

View File

@@ -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.
*/