Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • get-base-ref-size-bash-shell
  • update-clang-format
  • checkboxlist_for_settingWakeUp
  • patch/1.14.1
  • remove-watchface-enum
  • display-spi-flash-id-in-systeminfo
  • continuous-time-update-alternative-implementation
  • restore-brightness-level-when-closing-flashlight
  • emit-ble-radio-toggle-only-if-setting-changed
  • weather-service-improvements
  • update-bootloader-documentation
  • documentation-reorganization
  • power-optimization-increase-system-task-period
  • fosdem-2023-edition
  • update-to-gcc12
  • better-hardware-abstraction-using-concepts
  • bootloader-doc
  • reduce-ram-overhead
  • support/0.8
  • 1.15.0
  • 1.14.1
  • 1.14.0
  • 1.13.0
  • 1.12.0
  • 1.11.0-fosdem-edition
  • 1.11.0
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.1
  • 1.7.0
  • 1.6.0
  • 1.5.0
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 1.0.0-RC4
40 results

InfiniTimeVision.md

Blame
  • split.ts 387 B
    let startTime = 0;
    let lastTime = 0;
    let splits: Record<string, number> = {};
    
    export function splitInit(): void {
      splits = {};
      startTime = Date.now();
      lastTime = startTime;
    }
    
    export function addSplit(name: string): void {
      splits[name] = Date.now() - lastTime;
      lastTime = Date.now();
    }
    
    export function getSplits(): any {
      return { splits, total: Date.now() - startTime };
    }