LLDB mainline
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
lldb_private::StatsDuration Class Reference

#include <Statistics.h>

Public Types

using Duration = std::chrono::duration< double >
 

Public Member Functions

Duration get () const
 
 operator Duration () const
 
void reset ()
 
StatsDurationoperator+= (Duration dur)
 

Private Types

using InternalDuration = std::chrono::duration< uint64_t, std::micro >
 

Private Attributes

std::atomic< uint64_t > value {0}
 

Detailed Description

Definition at line 35 of file Statistics.h.

Member Typedef Documentation

◆ Duration

using lldb_private::StatsDuration::Duration = std::chrono::duration<double>

Definition at line 37 of file Statistics.h.

◆ InternalDuration

using lldb_private::StatsDuration::InternalDuration = std::chrono::duration<uint64_t, std::micro>
private

Definition at line 53 of file Statistics.h.

Member Function Documentation

◆ get()

Duration lldb_private::StatsDuration::get ( ) const
inline

◆ operator Duration()

lldb_private::StatsDuration::operator Duration ( ) const
inline

Definition at line 42 of file Statistics.h.

References get().

◆ operator+=()

StatsDuration & lldb_private::StatsDuration::operator+= ( Duration  dur)
inline

Definition at line 46 of file Statistics.h.

References value.

◆ reset()

void lldb_private::StatsDuration::reset ( )
inline

Member Data Documentation

◆ value

std::atomic<uint64_t> lldb_private::StatsDuration::value {0}
private

Definition at line 54 of file Statistics.h.

Referenced by get(), operator+=(), and reset().


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