Package 

Class SentryAndroidDateProvider

  • All Implemented Interfaces:
    io.sentry.SentryDateProvider

    @ApiStatus.Internal() 
    public final class SentryAndroidDateProvider
     implements SentryDateProvider
                        

    This SentryDateProvider will use a combination of java.util.Date and System.nanoTime() on Android. During testing we discovered that java.time.Instant only offers ms precision if the build has desugaring enabled. Event without desugaring only API 33 offered higher precision. More info can be found here: https://github.com/getsentry/sentry-java/pull/2451

    • Method Summary

      Modifier and Type Method Description
      SentryDate now()
      • Methods inherited from class io.sentry.SentryDateProvider

        now
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • now

         SentryDate now()