console module naming changed to "-"

This commit is contained in:
Vladimir Enchev
2014-05-15 09:25:32 +03:00
parent e8d3669d98
commit 056d43089f
5 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,22 @@
var TAG = 'JS';
export var helper_log = function (message: string) {
android.util.Log.v(TAG, message);
}
export var info = function (message: string) {
android.util.Log.i(TAG, message);
}
export var error = function (message: string) {
android.util.Log.e(TAG, message);
}
export var warn = function (message: string) {
android.util.Log.w(TAG, message);
}
export var timeMillis = function (): 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
}