class_docstr: Combine time.time() or time.monotonic() with time.perf_counter() to get an
  absolute clock with fine resolution.
class_docstr_tok: ["Combine","time.time","(",")","or","time.monotonic","(",")","with","time.perf_counter","(",")","to","get","an","absolute","clock","with","fine","resolution","."]
code: def time(self) -> float:
      cur = timemod.perf_counter()
      if cur > self.next_resync:
          self.resync()
          self.next_resync = cur + self.resync_every
      cur += self.delta
      if self.previous is not None:
          # Monotonic timer
          if cur <= self.previous:
              cur = self.previous + 1e-9
          self.previous = cur
      return cur
  
imports: from __future__ import annotations
  import asyncio
  import collections
  import threading
  import time
  from collections.abc import Callable, Hashable, Iterator
  from contextlib import contextmanager
  from contextvars import ContextVar
  from dataclasses import dataclass
  from functools import wraps
  from math import nan
  from typing import Literal
  import psutil
  from distributed.compatibility import WINDOWS
label_desc: Use image node_id 2 for calling the _WindowsTime obj's underlying member method code with example usage: obj.time() and returns: cur