> 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 <curtiswp...@gmail.com> 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 golang-nuts+unsubscr...@googlegroups.com.
> 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/CAK4xykWnn1_PFCEGmX1Y1srH1anEMoZqUb6LoZ2DeiWffGM%2BHg%40mail.gmail.com.

Reply via email to