This file contains hidden or 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
| fun measureTime(block: () -> Unit): Double = measureNanoTime(block) / 1000000.0 | |
| data class TestResult( | |
| val startupTime: List<Milliseconds>, | |
| val injectionTime: List<Milliseconds> | |
| ) | |
| private fun runTest( | |
| setup: () -> Unit, | |
| test: () -> Unit, | |
| teardown: () -> Unit = {} |
This file contains hidden or 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
| window.onload = function() { | |
| tizen.humanactivitymonitor.setAccumulativePedometerListener(onchangedCB); | |
| // add eventListener for tizenhwkey | |
| document.addEventListener('tizenhwkey', function(e) { | |
| if (e.keyName === "back") { | |
| try { | |
| tizen.application.getCurrentApplication().exit(); | |
| } catch (ignore) { | |
| } |