GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
octave::sys::time Class Reference

#include "oct-time.h"

Collaboration diagram for octave::sys::time:
Collaboration graph
[legend]

Public Member Functions

 time (void)
 
 time (time_t t)
 
 time (time_t t, int us)
 
 time (double d)
 
 time (const base_tm &tm)
 
 time (const time &ot)
 
 ~time (void)
 
std::string ctime (void) const
 
double double_value (void) const
 
timeoperator= (const time &ot)
 
void stamp (void)
 
time_t unix_time (void) const
 
long usec (void) const
 

Private Attributes

time_t ot_unix_time
 
long ot_usec
 

Detailed Description

Definition at line 37 of file oct-time.h.

Constructor & Destructor Documentation

octave::sys::time::time ( void  )
inline

Definition at line 43 of file oct-time.h.

octave::sys::time::time ( time_t  t)
inline

Definition at line 46 of file oct-time.h.

octave::sys::time::time ( time_t  t,
int  us 
)
inline

Definition at line 49 of file oct-time.h.

References rem().

octave::sys::time::time ( double  d)

Definition at line 44 of file oct-time.cc.

References ot_usec.

octave::sys::time::time ( const base_tm tm)
octave::sys::time::time ( const time ot)
inline

Definition at line 75 of file oct-time.h.

octave::sys::time::~time ( void  )
inline

Definition at line 89 of file oct-time.h.

Member Function Documentation

std::string octave::sys::time::ctime ( void  ) const

Definition at line 86 of file oct-time.cc.

References octave::sys::base_tm::asctime().

double octave::sys::time::double_value ( void  ) const
inline

Definition at line 93 of file oct-time.h.

Referenced by profile_data_accumulator::query_time().

time& octave::sys::time::operator= ( const time ot)
inline

Definition at line 78 of file oct-time.h.

References ot_unix_time, and ot_usec.

void octave::sys::time::stamp ( void  )
time_t octave::sys::time::unix_time ( void  ) const
inline
long octave::sys::time::usec ( void  ) const
inline

Member Data Documentation

time_t octave::sys::time::ot_unix_time
private

Definition at line 104 of file oct-time.h.

Referenced by operator=(), stamp(), and time().

long octave::sys::time::ot_usec
private

Definition at line 107 of file oct-time.h.

Referenced by operator=(), stamp(), and time().


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