MySQL 8.4.0
Source Code Documentation
my_timeval Struct Reference

Replacement of system's struct timeval to ensure we can carry 64 bit values even on a platform which has 64 bits time, but only 32 bits tv_sec member, notably Windows. More...

#include <my_time_t.h>

Public Attributes

int64_t m_tv_sec
 
int64_t m_tv_usec
 

Detailed Description

Replacement of system's struct timeval to ensure we can carry 64 bit values even on a platform which has 64 bits time, but only 32 bits tv_sec member, notably Windows.

We do use the system timeval when interfacing the C API calls, though, so in a few cases, e.g. by THD::{start_time, user_time}, we need to convert between representations but mostly the struct is only used internally by MySQL so we can use our own.

Member Data Documentation

◆ m_tv_sec

int64_t my_timeval::m_tv_sec

◆ m_tv_usec

int64_t my_timeval::m_tv_usec

The documentation for this struct was generated from the following file: