Skip to content
  • Deucе's avatar
    411e50a2
    Fix msclock() and xp_timer() to be monotonic on *nix · 411e50a2
    Deucе authored
    Previously, these both used gettimeofday() which is both expensive
    to call, and not monotonic.
    
    This fixes system.clock_ticks in JS and various internal bits. for
    when the UTC wall clock jumps.
    
    While we're here, fix the documention of system.clock_ticks
    411e50a2
    Fix msclock() and xp_timer() to be monotonic on *nix
    Deucе authored
    Previously, these both used gettimeofday() which is both expensive
    to call, and not monotonic.
    
    This fixes system.clock_ticks in JS and various internal bits. for
    when the UTC wall clock jumps.
    
    While we're here, fix the documention of system.clock_ticks
Loading