#include "oct-time.h"
Public Member Functions | |
time (const base_tm &tm) | |
time (const time &ot) | |
time (double d) | |
time (time_t t) | |
time (time_t t, long us) | |
time (void) | |
~time (void)=default | |
std::string | ctime (void) const |
double | double_value (void) const |
time & | operator= (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 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const time &ot) |
Definition at line 52 of file oct-time.h.
|
inline |
Definition at line 58 of file oct-time.h.
|
inline |
Definition at line 61 of file oct-time.h.
|
inline |
Definition at line 64 of file oct-time.h.
References rem().
octave::sys::time::time | ( | double | d | ) |
Definition at line 50 of file oct-time.cc.
octave::sys::time::time | ( | const base_tm & | tm | ) |
Definition at line 57 of file oct-time.cc.
References octave::sys::base_tm::gmtoff(), octave::sys::base_tm::hour(), octave::sys::base_tm::isdst(), octave::sys::base_tm::mday(), octave::sys::base_tm::min(), octave::sys::base_tm::mon(), octave_mktime_wrapper(), ot_unix_time, ot_usec, octave::sys::base_tm::sec(), strsave(), octave::sys::base_tm::usec(), octave::sys::base_tm::wday(), octave::sys::base_tm::yday(), octave::sys::base_tm::year(), and octave::sys::base_tm::zone().
|
inline |
Definition at line 90 of file oct-time.h.
|
default |
std::string octave::sys::time::ctime | ( | void | ) | const |
Definition at line 92 of file oct-time.cc.
References octave::sys::base_tm::asctime().
|
inline |
Definition at line 108 of file oct-time.h.
References as_double().
Referenced by Ftic(), Ftoc(), octave::profiler::query_time(), and octave::sleep().
Definition at line 93 of file oct-time.h.
References ot_unix_time, and ot_usec.
void octave::sys::time::stamp | ( | void | ) |
Definition at line 109 of file oct-time.cc.
References octave_gettimeofday_wrapper(), ot_unix_time, and ot_usec.
Referenced by octave::interpreter::chdir(), Fwaitfor(), octave::rehash_internal(), and octave::sleep().
|
inline |
Definition at line 113 of file oct-time.h.
Referenced by octave::sys::localtime::init(), octave::sys::gmtime::init(), octave::init_mersenne_twister(), log_search(), octave::sys::operator+(), octave::sys::operator<(), octave::sys::operator==(), octave::sys::operator>(), and octave::out_of_date_check().
|
inline |
Definition at line 115 of file oct-time.h.
Referenced by octave::sys::localtime::init(), octave::sys::gmtime::init(), octave::init_mersenne_twister(), octave::sys::operator+(), octave::sys::operator<(), octave::sys::operator==(), and octave::sys::operator>().
|
friend |
Definition at line 97 of file oct-time.cc.
|
private |
Definition at line 124 of file oct-time.h.
Referenced by time(), operator=(), and stamp().
|
private |
Definition at line 127 of file oct-time.h.
Referenced by time(), operator=(), and stamp().