mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 04:18:52 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			565 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			565 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
// TODO: we should use Foundation.NSLog() but it currently does not work
 | 
						|
// TODO: Is there a better way to implement the info/warn/error
 | 
						|
 | 
						|
export var helper_log = function (message: string) {
 | 
						|
    log('log: ' + message);
 | 
						|
}
 | 
						|
 | 
						|
export var info = function (message: string) {
 | 
						|
    log('info: ' + message);
 | 
						|
}
 | 
						|
 | 
						|
export var error = function (message: string) {
 | 
						|
    log('error: ' + message);
 | 
						|
}
 | 
						|
 | 
						|
export var warn = function (message: string) {
 | 
						|
    log('warning: ' + message);
 | 
						|
}
 | 
						|
 | 
						|
export var timeMillis = function (): number {
 | 
						|
    return QuartzCore.CACurrentMediaTime() * 1000;
 | 
						|
} |