pub struct Timing {
pub duration_ms: u64,
pub time_to_first_token_ms: Option<u64>,
}Expand description
Wall-clock timing for a run. Subjects that can measure it populate these; the rest leave them at their defaults.
Fields§
§duration_ms: u64Total wall-clock duration of the run, in milliseconds.
time_to_first_token_ms: Option<u64>Time from run start to the first streamed token/event, in milliseconds, when the subject can measure it (latency a user perceives first).
Implementations§
Trait Implementations§
impl Copy for Timing
Source§impl<'de> Deserialize<'de> for Timing
impl<'de> Deserialize<'de> for Timing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Timing
Auto Trait Implementations§
impl Freeze for Timing
impl RefUnwindSafe for Timing
impl Send for Timing
impl Sync for Timing
impl Unpin for Timing
impl UnsafeUnpin for Timing
impl UnwindSafe for Timing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more