With `--experimental:vmopsDanger` you can call getTimes() but you can't 
evaluate it with `$`. You can pass it to a function or call `.repr` on it.

>From discord:
    #ringabout — 09/19/2021 8:23 AM #it calls a proc uses threadvar variables 
and the $ proc is not registered in vmops
    
    
    import std/times
    static:
      # must compile with --experimental:vmopsDanger
      # echo getTime() # error cannot evaluate at compile time: localInstance
      let x = getTime()
      echo x.toUnix
      echo x.repr
      # time something here
      echo getTime() - x
    
    
    Run

Reply via email to