GDB (xrefs)
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
run_time_clock Struct Reference

#include "run-time-clock.h"

Public Types

using duration = std::chrono::microseconds
 
using rep = duration::rep
 
using period = duration::period
 
using time_point = std::chrono::time_point< run_time_clock >
 

Static Public Member Functions

static time_point now () noexcept
 
static void now (user_cpu_time_clock::time_point &user, system_cpu_time_clock::time_point &system) noexcept
 

Static Public Attributes

static constexpr bool is_steady = true
 

Detailed Description

Definition at line 57 of file run-time-clock.h.

Member Typedef Documentation

◆ duration

using run_time_clock::duration = std::chrono::microseconds

Definition at line 59 of file run-time-clock.h.

◆ period

using run_time_clock::period = duration::period

Definition at line 61 of file run-time-clock.h.

◆ rep

using run_time_clock::rep = duration::rep

Definition at line 60 of file run-time-clock.h.

◆ time_point

using run_time_clock::time_point = std::chrono::time_point<run_time_clock>

Definition at line 62 of file run-time-clock.h.

Member Function Documentation

◆ now() [1/2]

run_time_clock::time_point run_time_clock::now ( )
staticnoexcept

◆ now() [2/2]

void run_time_clock::now ( user_cpu_time_clock::time_point user,
system_cpu_time_clock::time_point system 
)
staticnoexcept

Definition at line 42 of file run-time-clock.c.

References rusage, and timeval_to_microseconds().

Member Data Documentation

◆ is_steady

constexpr bool run_time_clock::is_steady = true
static

Definition at line 64 of file run-time-clock.h.


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