Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSampleTimeNs(int)

Gets the duration of sample. The amount of time is expressed in nanoseconds.
Read time 1 minuteLast updated 10 days ago

Definition

public ulong GetSampleTimeNs(int sampleIndex)

Parameters

sampleIndex

Index of the Profiler sample.

Returns

Type

Description

ulongReturns sample duration in nanoseconds.