How to find the time since Epoch in nanoseconds in Android?
Below APIS are available but they just give the time since boot
SystemClock.elapsedRealtimeNanos()
- Time since boot but includes deep sleep timeSystem.getnano()
-> This is up time since boot without the deep sleep time.
For Epoch time, there seems to be only 1 API available.
System.currentTimeMillis()
-> shows time since Epoch in milliseconds.
Is there a similar API/a new approach to get the time since epoch in nano seconds.
PS : Time since Epoch means, the time elapsed since January 1, 1970 UTC.