Esempio n. 1
0
            public override Instant Instant()
            {
                if ((TickNanos % 1000000) == 0)
                {
                    long millis = BaseClock.Millis();
                    return(Instant.OfEpochMilli(millis - Math.FloorMod(millis, TickNanos / 1000_000L)));
                }
                Instant instant = BaseClock.Instant();
                long    nanos   = instant.Nano;
                long    adjust  = Math.FloorMod(nanos, TickNanos);

                return(instant.MinusNanos(adjust));
            }