ggml_time_init: Initialize GGML Timer

View source: R/ggml.R

ggml_time_initR Documentation

Initialize GGML Timer

Description

Initializes the GGML timing system. Call this once at the beginning of the program before using ggml_time_ms() or ggml_time_us().

Usage

ggml_time_init()

Value

NULL (invisible)

Examples


ggml_time_init()
start <- ggml_time_ms()
Sys.sleep(0.01)
elapsed <- ggml_time_ms() - start


ggmlR documentation built on July 14, 2026, 1:08 a.m.