IOS get time in Nanoseconds Or Milliseconds

To get the time in nano seconds or milli seconds use the following code snippet: For more on this look into the IOS docs: mach_absolute_time | Apple Developer Documentation There is another method now, which we can use directly and make it more concise: For more details of the IOS version support check the chromium … Read more

Categories IOS

Android get time in milliseconds

If you need to get the time in milliseconds in android then you can use the following code snippet: Now above code snipped will give you time since the system has been rebooted in milliseconds. In some case it would be sufficient to find how may milliseconds has been taken by any operation. Now there … Read more

Android | Find number of displays connected

You why you would need that. I used it to detect if screen mirroring is on or not. If length of displays is greater than 1 then screen mirroring is on else not. It’s not hundred percent upto the mark. May be we can use the MediaRouter API too. I haven’t gone through that much … Read more

Play Asset Delivery React Native

If you want to add PAD to your react native app, then it is the right place. It is the demonstration for the install-time asset delivery and not ‘on demand’ one. First read article: Android Developers Blog: Introducing Google Play Asset Delivery ( Next thing do all the settings as described in: Integrate asset delivery … Read more

Linux find and replace in string

Some useful ways to manipulate files: Array: Array could be crated like You can see that values are separated through space. Store multiline string to variable: Use cat command like below: Be careful with ‘END’ word. There should be any space before it, otherwise it will considered as a line. Looping through array: We can … Read more