mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
namespaces removed (except Application)
This commit is contained in:
@ -1,27 +1,24 @@
|
||||
export class ConsoleHelper {
|
||||
static TAG: string = 'JS';
|
||||
|
||||
export module tk {
|
||||
export class ConsoleHelper {
|
||||
static TAG: string = 'JS';
|
||||
|
||||
static log(message: string): void {
|
||||
android.util.Log.v(ConsoleHelper.TAG, message);
|
||||
}
|
||||
|
||||
static info(message: string): void {
|
||||
android.util.Log.i(ConsoleHelper.TAG, message);
|
||||
}
|
||||
|
||||
static error(message: string): void {
|
||||
android.util.Log.e(ConsoleHelper.TAG, message);
|
||||
}
|
||||
|
||||
static warn(message: string): void {
|
||||
android.util.Log.w(ConsoleHelper.TAG, message);
|
||||
}
|
||||
|
||||
static timeMillis(): number {
|
||||
// NOTE: we might need to use currentTimeMillis if we have troubles with the long size
|
||||
return java.lang.System.nanoTime() / 1000000; // 1 ms = 1000000 ns
|
||||
}
|
||||
static log(message: string): void {
|
||||
android.util.Log.v(ConsoleHelper.TAG, message);
|
||||
}
|
||||
}
|
||||
|
||||
static info(message: string): void {
|
||||
android.util.Log.i(ConsoleHelper.TAG, message);
|
||||
}
|
||||
|
||||
static error(message: string): void {
|
||||
android.util.Log.e(ConsoleHelper.TAG, message);
|
||||
}
|
||||
|
||||
static warn(message: string): void {
|
||||
android.util.Log.w(ConsoleHelper.TAG, message);
|
||||
}
|
||||
|
||||
static timeMillis(): number {
|
||||
// NOTE: we might need to use currentTimeMillis if we have troubles with the long size
|
||||
return java.lang.System.nanoTime() / 1000000; // 1 ms = 1000000 ns
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user