System Time Functions, system functions
1. public static long currentThreadTimeMillis () returns the number of milliseconds that run in the current thread.
2. public static long elapsedRealtime () returns the number of milliseconds since the system was started, including the sleep time.
3. public static long elapsedRealtimeNanos () returns the number of nanoseconds since the system was started, including the sleep time.
4. public static boolean setCurrentTimeMillis (long millis) sets the current "wall" time and requires that the calling process have permission. Whether the request is successful.
5. public static void sleep (long MS) waits for the given time. Similar to Thread. sleep (millis), but it does not throw an InterruptedException exception. The event is postponed to the next interrupted operation. This method is not returned until the specified time expires.
6. public static long uptimeMillis () returns the number of milliseconds since the system was started, excluding the sleep time. That is to say, the statistical system starts to the current non-sleep period.