Learn R Programming

ggmlR (version 0.6.1)

ggml_time_us: Get Time in Microseconds

Description

Returns the current time in microseconds since the timer was initialized. More precise than ggml_time_ms() for micro-benchmarking.

Usage

ggml_time_us()

Arguments

Value

Numeric value representing microseconds

Examples

Run this code
# \donttest{
ggml_time_init()
start <- ggml_time_us()
Sys.sleep(0.001)
elapsed <- ggml_time_us() - start
# }

Run the code above in your browser using DataLab