Home
last modified time | relevance | path

Searched refs:xtime (Results 1 – 25 of 35) sorted by relevance

12

/third_party/boost/libs/chrono/example/
Dtimeval_demo.cpp89 class xtime { class
103 explicit xtime(long sec, long usec) { in xtime() function in timeval_demo::xtime
113 explicit xtime(long long usec) in xtime() function in timeval_demo::xtime
123 xtime& operator += (xtime rhs) { in operator +=()
133 xtime& operator -= (xtime rhs) { in operator -=()
140 xtime& operator %= (xtime rhs) { in operator %=()
150 friend xtime operator+(xtime x, xtime y) {return x += y;} in operator +()
151 friend xtime operator-(xtime x, xtime y) {return x -= y;} in operator -()
152 friend xtime operator%(xtime x, xtime y) {return x %= y;} in operator %()
154 friend bool operator==(xtime x, xtime y) in operator ==()
[all …]
Dtime2_demo.cpp886 class xtime { class
900 explicit xtime(long sec, long usec) { in xtime() function in timeval_demo::xtime
910 explicit xtime(long long usec) in xtime() function in timeval_demo::xtime
920 xtime& operator += (xtime rhs) { in operator +=()
930 xtime& operator -= (xtime rhs) { in operator -=()
937 xtime& operator %= (xtime rhs) { in operator %=()
947 friend xtime operator+(xtime x, xtime y) {return x += y;} in operator +()
948 friend xtime operator-(xtime x, xtime y) {return x -= y;} in operator -()
949 friend xtime operator%(xtime x, xtime y) {return x %= y;} in operator %()
951 friend bool operator==(xtime x, xtime y) in operator ==()
[all …]
/third_party/boost/boost/thread/
Dxtime.hpp34 struct xtime struct
60 inline ::boost::xtime get_xtime(boost::system_time const& abs_time) in get_xtime() argument
62 ::boost::xtime res; in get_xtime()
65 res.sec=static_cast< ::boost::xtime::xtime_sec_t>(time_since_epoch.total_seconds()); in get_xtime()
66 …res.nsec=static_cast< ::boost::xtime::xtime_nsec_t>(time_since_epoch.fractional_seconds()*(1000000… in get_xtime()
70 inline int xtime_get(struct ::boost::xtime* xtp, int clock_type) in xtime_get()
81 inline int xtime_cmp(const ::boost::xtime& xt1, const ::boost::xtime& xt2) in xtime_cmp()
/third_party/boost/libs/thread/test/
Dutil.inl11 #include <boost/thread/xtime.hpp>
27 inline boost::xtime delay(int secs, int msecs=0, int nsecs=0)
33 boost::xtime xt;
54 inline bool in_range(const boost::xtime& xt, int secs=1)
56 boost::xtime min = delay(-secs);
57 boost::xtime max = delay(0);
96 boost::xtime xt = delay(secs);
Dtest_xtime.cpp9 #define BOOST_TEST_MODULE Boost.Threads: xtime test suite
21 boost::xtime xt1, xt2, cur; in BOOST_AUTO_TEST_CASE()
45 boost::xtime orig, cur, old; in BOOST_AUTO_TEST_CASE()
Dtest_mutex.cpp46 boost::xtime xt = delay(0, 100); in operator ()()
86 boost::xtime xt = delay(0, 100); in operator ()()
Dtest_condition.cpp79 boost::xtime xt = delay(10); in condition_test_waits()
Dtest_thread.cpp47 boost::xtime xt = delay(3); in BOOST_AUTO_TEST_CASE()
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-x509.c48 lws_tls_mbedtls_time_to_unix(mbedtls_x509_time *xtime) in lws_tls_mbedtls_time_to_unix() argument
52 if (!xtime || !xtime->MBEDTLS_PRIVATE(year) || xtime->MBEDTLS_PRIVATE(year) < 0) in lws_tls_mbedtls_time_to_unix()
57 t.tm_year = xtime->MBEDTLS_PRIVATE(year) - 1900; in lws_tls_mbedtls_time_to_unix()
58 t.tm_mon = xtime->MBEDTLS_PRIVATE(mon) - 1; /* mbedtls months are 1+, tm are 0+ */ in lws_tls_mbedtls_time_to_unix()
59 t.tm_mday = xtime->MBEDTLS_PRIVATE(day) - 1; /* mbedtls days are 1+, tm are 0+ */ in lws_tls_mbedtls_time_to_unix()
60 t.tm_hour = xtime->MBEDTLS_PRIVATE(hour); in lws_tls_mbedtls_time_to_unix()
61 t.tm_min = xtime->MBEDTLS_PRIVATE(min); in lws_tls_mbedtls_time_to_unix()
62 t.tm_sec = xtime->MBEDTLS_PRIVATE(sec); in lws_tls_mbedtls_time_to_unix()
/third_party/e2fsprogs/tests/f_pre_1970_date_encoding/
Dscript17 for xtime in atime ctime mtime crtime; do
18 echo "set_inode_field $name $xtime @$time"
19 echo "set_inode_field $name ${xtime}_extra $extra"
47 # confirm that the xtime is wrong on the pre-1970 file
/third_party/boost/libs/thread/example/
DJamfile.v222 exe xtime : xtime.cpp ;
Dstarvephil.cpp54 boost::xtime xt; in put()
89 boost::xtime xt; in chef()
115 boost::xtime xt; in run()
Dxtime.cpp14 boost::xtime xt; in main()
Dthread.cpp18 boost::xtime xt; in operator ()()
Dtennis.cpp108 boost::xtime xt; in main()
/third_party/boost/libs/spirit/classic/test/
Dowi_mt_tests.cpp61 boost::xtime start_time;
90 boost::xtime now; in increase_test_size()
92 boost::xtime::xtime_sec_t seconds = now.sec - start_time.sec; in increase_test_size()
Dgrammar_mt_tests.cpp74 boost::xtime xt; in milli_sleep()
/third_party/boost/boost/thread/win32/
Dcondition_variable.hpp364 bool timed_wait(unique_lock<mutex>& m,boost::xtime const& abs_time) in timed_wait()
401 bool timed_wait(unique_lock<mutex>& m,boost::xtime const& abs_time,predicate_type pred) in timed_wait()
563 bool timed_wait(lock_type& m,boost::xtime const& abs_time) in timed_wait()
602 bool timed_wait(lock_type& m,boost::xtime const& abs_time,predicate_type pred) in timed_wait()
Dbasic_timed_mutex.hpp211 bool timed_lock(boost::xtime const& timeout) in timed_lock()
/third_party/boost/boost/thread/pthread/
Dcondition_variable_fwd.hpp124 ::boost::xtime const& abs_time) in timed_wait()
190 ::boost::xtime const& abs_time,predicate_type pred) in timed_wait()
Dcondition_variable.hpp246 bool timed_wait(lock_type& m,::boost::xtime const& abs_time) in timed_wait()
306 bool timed_wait(lock_type& m,::boost::xtime const& abs_time, predicate_type pred) in timed_wait()
Dmutex.hpp162 bool timed_lock(boost::xtime const & absolute_time) in timed_lock()
/third_party/e2fsprogs/misc/
Dfuse2fs.c397 #define EXT4_INODE_SET_XTIME(xtime, timespec, raw_inode) \ argument
399 (raw_inode)->xtime = (timespec)->tv_sec; \
400 if (EXT4_FITS_IN_INODE(raw_inode, xtime ## _extra)) \
401 (raw_inode)->xtime ## _extra = \
405 #define EXT4_EINODE_SET_XTIME(xtime, timespec, raw_inode) \ argument
407 if (EXT4_FITS_IN_INODE(raw_inode, xtime)) \
408 (raw_inode)->xtime = (timespec)->tv_sec; \
409 if (EXT4_FITS_IN_INODE(raw_inode, xtime ## _extra)) \
410 (raw_inode)->xtime ## _extra = \
414 #define EXT4_INODE_GET_XTIME(xtime, timespec, raw_inode) \ argument
[all …]
/third_party/e2fsprogs/debugfs/
Dutil.c194 char *inode_time_to_string(__u32 xtime, __u32 xtime_extra) in inode_time_to_string() argument
196 __s64 t = (__s32) xtime; in inode_time_to_string()
/third_party/boost/libs/chrono/doc/
Dchrono.qbk1704 [section xtime Conversions]
1724 To demonstrate interaction with an xtime-like facility:
1727 struct xtime
1734 xtime
1737 xtime xt;
1744 xtime
1747 xtime xt;
1754 from_xtime(xtime xt)
1759 void print(xtime xt)
1766 xtime xt = to_xtime_truncate(seconds(3) + boost::chrono::__milliseconds(251));
[all …]

12