-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
visual-effects-ny benchmark: remove dependencies on time and random. …
…Introduce number of iterations (#3218)
- Loading branch information
Showing
6 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 7 additions & 1 deletion
8
benchmarks/ios/visual-effects-ny/shared/src/androidMain/kotlin/platform/NanoTime.kt
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
package org.jetbrains.compose.demo.visuals.platform | ||
|
||
actual fun nanoTime(): Long = System.nanoTime() | ||
import kotlin.system.exitProcess | ||
|
||
actual fun nanoTime(): Long = System.nanoTime() | ||
|
||
actual fun measureTime() = nanoTime() | ||
|
||
actual fun exit(): Unit = exitProcess(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
5 changes: 4 additions & 1 deletion
5
benchmarks/ios/visual-effects-ny/shared/src/commonMain/kotlin/platform/NanoTime.kt
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
package org.jetbrains.compose.demo.visuals.platform | ||
|
||
expect fun nanoTime(): Long | ||
expect fun nanoTime(): Long | ||
|
||
expect fun measureTime(): Long | ||
expect fun exit(): Unit |
7 changes: 6 additions & 1 deletion
7
benchmarks/ios/visual-effects-ny/shared/src/desktopMain/kotlin/platform/NanoTime.kt
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
package org.jetbrains.compose.demo.visuals.platform | ||
|
||
actual fun nanoTime(): Long = System.nanoTime() | ||
import kotlin.system.exitProcess | ||
|
||
actual fun nanoTime(): Long = 0//System.nanoTime() | ||
|
||
actual fun measureTime() = System.nanoTime() | ||
actual fun exit(): Unit = exitProcess(0) |
7 changes: 6 additions & 1 deletion
7
benchmarks/ios/visual-effects-ny/shared/src/iosMain/kotlin/platform/NanoTime.kt
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
package org.jetbrains.compose.demo.visuals.platform | ||
|
||
actual fun nanoTime(): Long = kotlin.system.getTimeNanos() | ||
import kotlin.system.exitProcess | ||
|
||
actual fun nanoTime(): Long = kotlin.system.getTimeNanos() | ||
|
||
actual fun measureTime() = nanoTime() | ||
actual fun exit(): Unit = exitProcess(0) |
7 changes: 6 additions & 1 deletion
7
benchmarks/ios/visual-effects-ny/shared/src/macosMain/kotlin/platform/NanoTime.kt
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
package org.jetbrains.compose.demo.visuals.platform | ||
|
||
actual fun nanoTime(): Long = kotlin.system.getTimeNanos() | ||
import kotlin.system.exitProcess | ||
|
||
actual fun nanoTime(): Long = 0;//kotlin.system.getTimeNanos() | ||
|
||
actual fun measureTime() = kotlin.system.getTimeNanos() | ||
actual fun exit(): Unit = exitProcess(0) |