Imporve Android usability
This commit is contained in:
@@ -36,7 +36,10 @@ void Kotlin_io_Console_print(KString message) {
|
||||
|
||||
void Kotlin_io_Console_println(KString message) {
|
||||
Kotlin_io_Console_print(message);
|
||||
#ifndef KONAN_ANDROID
|
||||
// On Android single print produces logcat entry, so no need in linefeed.
|
||||
Kotlin_io_Console_println0();
|
||||
#endif
|
||||
}
|
||||
|
||||
void Kotlin_io_Console_println0() {
|
||||
|
||||
@@ -16,17 +16,14 @@
|
||||
|
||||
package kotlin.system
|
||||
|
||||
@PublishedApi
|
||||
@SymbolName("Kotlin_system_getTimeMillis")
|
||||
internal external fun getTimeMillis() : Long
|
||||
public external fun getTimeMillis() : Long
|
||||
|
||||
@PublishedApi
|
||||
@SymbolName("Kotlin_system_getTimeNanos")
|
||||
internal external fun getTimeNanos() : Long
|
||||
public external fun getTimeNanos() : Long
|
||||
|
||||
@PublishedApi
|
||||
@SymbolName("Kotlin_system_getTimeMicros")
|
||||
internal external fun getTimeMicros() : Long
|
||||
public external fun getTimeMicros() : Long
|
||||
|
||||
/** Executes the given block and returns elapsed time in milliseconds. */
|
||||
public inline fun measureTimeMillis(block: () -> Unit) : Long {
|
||||
|
||||
Reference in New Issue
Block a user