diff options
Diffstat (limited to 'core/java/android/view/InputEvent.java')
| -rwxr-xr-x | core/java/android/view/InputEvent.java | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/core/java/android/view/InputEvent.java b/core/java/android/view/InputEvent.java index 5602436..ef810a3 100755 --- a/core/java/android/view/InputEvent.java +++ b/core/java/android/view/InputEvent.java @@ -159,8 +159,26 @@ public abstract class InputEvent implements Parcelable { public abstract void setTainted(boolean tainted); /** - * Returns the time (in ns) when this specific event was generated. + * Retrieve the time this event occurred, + * in the {@link android.os.SystemClock#uptimeMillis} time base. + * + * @return Returns the time this event occurred, + * in the {@link android.os.SystemClock#uptimeMillis} time base. + */ + public abstract long getEventTime(); + + /** + * Retrieve the time this event occurred, + * in the {@link android.os.SystemClock#uptimeMillis} time base but with + * nanosecond (instead of millisecond) precision. + * <p> * The value is in nanosecond precision but it may not have nanosecond accuracy. + * </p> + * + * @return Returns the time this event occurred, + * in the {@link android.os.SystemClock#uptimeMillis} time base but with + * nanosecond (instead of millisecond) precision. + * * @hide */ public abstract long getEventTimeNano(); |
