GNU Octave  3.8.0
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_time Class Reference

#include "oct-time.h"

Collaboration diagram for octave_time:
Collaboration graph
[legend]

Public Member Functions

 octave_time (void)
 octave_time (time_t t)
 octave_time (time_t t, int us)
 octave_time (double d)
 octave_time (const octave_base_tm &tm)
 octave_time (const octave_time &ot)
 ~octave_time (void)
std::string ctime (void) const
double double_value (void) const
octave_timeoperator= (const octave_time &ot)
void stamp (void)
time_t unix_time (void) const
int usec (void) const

Private Attributes

time_t ot_unix_time
int ot_usec

Detailed Description

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

Constructor & Destructor Documentation

octave_time::octave_time ( void  )
inline

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

octave_time::octave_time ( time_t  t)
inline

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

octave_time::octave_time ( time_t  t,
int  us 
)
inline

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

References rem().

octave_time::octave_time ( double  d)
inline

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

octave_time::octave_time ( const octave_base_tm tm)
octave_time::octave_time ( const octave_time ot)
inline

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

octave_time::~octave_time ( void  )
inline

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

Member Function Documentation

std::string octave_time::ctime ( void  ) const

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

double octave_time::double_value ( void  ) const
inline

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

Referenced by Ftic(), Ftoc(), and profile_data_accumulator::query_time().

octave_time& octave_time::operator= ( const octave_time ot)
inline

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

References ot_unix_time, and ot_usec.

void octave_time::stamp ( void  )

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

References ot_unix_time, and ot_usec.

Referenced by interactive_input(), octave_change_to_directory(), and rehash_internal().

time_t octave_time::unix_time ( void  ) const
inline
int octave_time::usec ( void  ) const
inline

Member Data Documentation

time_t octave_time::ot_unix_time
private

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

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

int octave_time::ot_usec
private

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

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


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