This repository has been archived by the owner on Sep 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use nanoTime() instead of now() for durations
- Loading branch information
Lukas Sembera
committed
Dec 31, 2016
1 parent
a7241b5
commit c8819af
Showing
8 changed files
with
40 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package eu.semberal.dbstress | ||
|
||
import java.time.format.DateTimeFormatter | ||
|
||
import scala.concurrent.duration.{DurationInt, FiniteDuration} | ||
|
||
object Utils { | ||
val filePathFriendlyDateTimeFormat: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd_HHmmss") | ||
|
||
val ScenarioTimeout: FiniteDuration = (24 * 60 * 60).seconds | ||
|
||
val ActorSystemShutdownTimeout: FiniteDuration = 20.seconds | ||
|
||
def toMillis(start: Long, end: Long): Long = Math.round((end - start) / 1000000.0) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters