Ya, I didn't see anything specific in that part of the doc regarding 
NewTicker and monotonic.  I did see that some things in time. do not 
consider monotonic clock.
Then the blurb on NewTicker didn't say anything about monotonic.

I guess it's safe to assume NewTicker returns a monotonic clock time and 
that time would be evaluated by the functions that work with monotonic.
Just wondering if anyone has had experience or knows something more 
specific about it.

On Wednesday, June 10, 2020 at 4:50:52 PM UTC-6, andrey mirtchovski wrote:
>
> > Does anyone know if the time data that NewTicker returns (i.e. via it's 
> channel, etc...) includes monotonic time? 
>
> it's right at the top: https://golang.org/pkg/time/ 
>
> On Wed, Jun 10, 2020 at 4:48 PM Curtis Paul <curti...@gmail.com 
> <javascript:>> wrote: 
> > 
> > It sounds like NewTicker will dynamically adjust to keep tick time 
> "accurate". 
> > 
> > Does anyone know if the time data that NewTicker returns (i.e. via it's 
> channel, etc...) includes monotonic time? 
> > And if so is the definition of NewTicker referring to adjusting real 
> time clock or monotonic clock? 
> > 
> > I'm not really sure what to expect with using ticker in terms of timing 
> accuracy. 
> > Is NewTicker() monotonic? 
> > 
> > Also not quite sure what "Stop the ticker to release associated 
> resources" refers to. 
> > 
> > time.NewTicker() 
> > 
> > "NewTicker returns a new Ticker containing a channel that will send the 
> time with a period specified by the duration argument. It adjusts the 
> intervals or drops ticks to make up for slow receivers. The duration d must 
> be greater than zero; if not, NewTicker will panic. Stop the ticker to 
> release associated resources." 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "golang-nuts" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to golan...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/ec9cf4f2-5404-4512-9b57-b4816ea47adeo%40googlegroups.com.
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/926230a2-fd49-45dd-8926-3231d12179f5o%40googlegroups.com.

Reply via email to