/freebsd/contrib/kyua/utils/ |
H A D | datetime_test.cpp | 267 const datetime::timestamp ts1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() 270 const datetime::timestamp ts2 = ts1; in ATF_TEST_CASE_BODY() 271 const datetime::timestamp ts3 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() 284 const datetime::timestamp ts = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY() 297 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY() 299 datetime::set_mock_now(datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() 302 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY() 304 datetime::timestamp::now().strftime("%Y-%m-%d %H:%M:%S")); in ATF_TEST_CASE_BODY() 317 const datetime::timestamp now = datetime::timestamp::now(); in ATF_TEST_CASE_BODY() 332 const datetime::timestamp first = datetime::timestamp::now(); in ATF_TEST_CASE_BODY() [all …]
|
H A D | datetime.cpp | 54 static optional< datetime::timestamp > mock_now = none; 261 struct timestamp::impl : utils::noncopyable { 281 datetime::timestamp::timestamp(std::shared_ptr< impl > pimpl_) : in timestamp() function in datetime::timestamp 292 datetime::timestamp 293 datetime::timestamp::from_microseconds(const int64_t value) in from_microseconds() 299 return timestamp(std::shared_ptr< impl >(new impl(data))); in from_microseconds() 315 datetime::timestamp 316 datetime::timestamp::from_values(const int year, const int month, in from_values() 355 return timestamp(std::shared_ptr< impl >(new impl(data))); in from_values() 362 datetime::timestamp [all …]
|
H A D | datetime.hpp | 94 class timestamp { class 100 timestamp(std::shared_ptr< impl >); 103 static timestamp from_microseconds(const int64_t); 104 static timestamp from_values(const int, const int, const int, 107 static timestamp now(void); 114 bool operator==(const timestamp&) const; 115 bool operator!=(const timestamp&) const; 116 bool operator<(const timestamp&) const; 117 bool operator<=(const timestamp&) const; 118 bool operator>(const timestamp&) const; [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | trace.h | 79 __entry->info = ar->pdev->timestamp.info; 80 __entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us; 81 __entry->sync_tstmp_hi_us = ar->pdev->timestamp.sync_timestamp_lo_us; 82 __entry->mlo_offset_lo = ar->pdev->timestamp.mlo_offset_lo; 83 __entry->mlo_offset_hi = ar->pdev->timestamp.mlo_offset_hi; 84 __entry->mlo_offset_clks = ar->pdev->timestamp.mlo_offset_clks; 85 __entry->mlo_comp_clks = ar->pdev->timestamp.mlo_comp_clks; 86 __entry->mlo_comp_timer = ar->pdev->timestamp.mlo_comp_timer; 124 __entry->info = ar->pdev->timestamp.info; 125 __entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us; [all …]
|
/freebsd/contrib/kyua/utils/signals/ |
H A D | timer.cpp | 104 typedef std::map< datetime::timestamp, timers_set > timers_by_timestamp_map; 113 datetime::timestamp _timer_activation; 164 const datetime::timestamp& now, in compute_timers_to_run_and_prune_old() 192 const datetime::timestamp& now, in reprogram_system_timer() 210 datetime::timestamp next = (*iter).first; in reprogram_system_timer() 242 global_state(signals::timer* timer, const datetime::timestamp& now) : in global_state() 293 program_new(signals::timer* timer, const datetime::timestamp& now) in program_new() 321 reprogram_system_timer(datetime::timestamp::now(), inhibiter); in unprogram() 332 fire(const datetime::timestamp& now) in fire() 360 globals->fire(datetime::timestamp::now()); in sigalrm_handler() [all …]
|
/freebsd/tools/sched/ |
H A D | schedgraph.d | 71 …up:\"load\", id:\"global load\", counter:\"%d\", attributes: \"none\"\n", cpu, timestamp, args[1]); 77 …ad\", id:\"CPU %d load\", counter:\"%d\", attributes: \"none\"\n", cpu, timestamp, args[0], args[1… 83 … id:\"%s/%s tid %d\", state:\"proc exit\", attributes: prio:td\n", cpu, timestamp, curthread->td_p… 88 …ad\", id:\"%s/%s tid %d\", state:\"exit\", attributes: prio:td\n", cpu, timestamp, curthread->td_p… 93 …", attributes: prio:%d, new prio:%d, linkedto:\"%s/%s tid %d\"\n", cpu, timestamp, args[0]->td_pro… 98 …", attributes: prio:%d, new prio:%d, linkedto:\"%s/%s tid %d\"\n", cpu, timestamp, curthread->td_p… 103 …e:\"runq add\", attributes: prio:%d, linkedto:\"%s/%s tid %d\"\n", cpu, timestamp, args[0]->td_pro… 104 … %d\", point:\"wokeup\", attributes: linkedto:\"%s/%s tid %d\"\n", cpu, timestamp, curthread->td_p… 109 …e:\"runq rem\", attributes: prio:%d, linkedto:\"%s/%s tid %d\"\n", cpu, timestamp, args[0]->td_pro… 114 … tid %d\", point:\"statclock\", attributes: prio:%d, stathz:%d\n", cpu, timestamp, args[0]->td_pro… [all …]
|
/freebsd/contrib/ntp/sntp/tests/ |
H A D | kodFile.c | 54 TEST_ASSERT_EQUAL(0x12345678, res->timestamp); in test_ReadCorrectFile() 59 TEST_ASSERT_EQUAL(0xfff, res->timestamp); in test_ReadCorrectFile() 74 TEST_ASSERT_EQUAL(0x12345678, res->timestamp); in test_ReadFileWithBlankLines() 79 TEST_ASSERT_EQUAL(0xfff, res->timestamp); in test_ReadFileWithBlankLines() 84 TEST_ASSERT_EQUAL(0xabcd, res->timestamp); in test_ReadFileWithBlankLines() 111 kod_db[0]->timestamp = 1; in test_WriteFileWithSingleEntry() 139 kod_db[0]->timestamp = 0xabcd; in test_WriteFileWithMultipleEntries() 140 kod_db[1]->timestamp = 0xabcd; in test_WriteFileWithMultipleEntries() 141 kod_db[2]->timestamp = 0xabcd; in test_WriteFileWithMultipleEntries()
|
/freebsd/contrib/kyua/utils/process/ |
H A D | deadline_killer_test.cpp | 72 datetime::timestamp start = datetime::timestamp::now(); in ATF_TEST_CASE_BODY() 76 datetime::timestamp end = datetime::timestamp::now(); in ATF_TEST_CASE_BODY() 91 datetime::timestamp start = datetime::timestamp::now(); in ATF_TEST_CASE_BODY() 95 datetime::timestamp end = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/misc/ |
H A D | tst.roch.d | 49 printf(" %u 0x%llX %d %d comm:%s csathr:%lld", timestamp, 59 printf(" %u 0x%llX %d %d comm:%s csathr:%lld", timestamp, 67 printf(" %u 0x%llX %d %d ", timestamp, 73 printf(" %u 0x%llX %d %d tag:%d off:%d ", timestamp, 79 printf(" %u 0x%llX %d %d lock:0x%llX", timestamp, 85 printf(" %u 0x%llX %d %d lock:0x%llX", timestamp,
|
/freebsd/crypto/heimdal/admin/ |
H A D | purge.c | 45 time_t timestamp; member 61 add_entry (krb5_principal princ, int vno, time_t timestamp, struct e **head) in add_entry() argument 70 e->timestamp = timestamp; in add_entry() 81 e->timestamp = timestamp; in add_entry() 129 add_entry (entry.principal, entry.vno, entry.timestamp, &head); in kt_purge() 151 && judgement_day - e->timestamp > age) { in kt_purge()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.multiaggs1.d | 39 time_1 = timestamp; 46 time_2 = timestamp; 54 @g[timestamp] = max(new_time); 55 @h[timestamp] = quantize(new_time); 56 @i[timestamp] = lquantize(new_time, 0, 10000, 1000);
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/stop/ |
H A D | tst.stop2.d | 43 timeout = timestamp + 1000000000; 63 timeout = timestamp + 1000000000 / 4; 67 /timestamp > timeout && stopped == 1/ 74 /timestamp > timeout/
|
H A D | tst.stop1.d | 43 timeout = timestamp + 1000000000; 63 timeout = timestamp + 1000000000 / 4; 67 /timestamp > timeout && stopped == 1/ 74 /timestamp > timeout/
|
/freebsd/crypto/openssl/doc/man1/ |
H A D | openssl-ts.pod.in | 78 signs them and sends the timestamp token back to the client. By 84 The TSA client receives the timestamp token and verifies the 91 timestamp request to the TSA and one for sending the timestamp response 93 creating a timestamp request based on a data file, 94 creating a timestamp response based on a request, verifying if a 125 The B<-query> command can be used for creating and printing a timestamp 138 The data file for which the timestamp request needs to be 159 timestamp token. Either the dotted OID notation or OID names defined 177 This option specifies a previously created timestamp reques [all...] |
H A D | tsget.pod | 26 This command can be used for sending a timestamp request, as specified 27 in RFC 3161, to a timestamp server over HTTP or HTTPS and storing the 28 timestamp response in a file. It cannot be used for creating the requests 33 This command sends the following HTTP request for each timestamp request: 39 Content-Type: application/timestamp-query 40 Accept: application/timestamp-reply 45 It expects a response of type application/timestamp-reply, which is 54 The URL of the HTTP/HTTPS server listening for timestamp requests. 65 server. The timestamp response will be written to the given output file. '-' 66 means standard output. In case of multiple timestamp requests or the absence [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | mk_safe.c | 71 krb5_us_timeofday (context, &rdata.timestamp, &rdata.usec); in krb5_mk_safe() 74 s.safe_body.timestamp = &rdata.timestamp; in krb5_mk_safe() 77 s.safe_body.timestamp = NULL; in krb5_mk_safe() 82 outdata->timestamp = rdata.timestamp; in krb5_mk_safe()
|
H A D | mk_priv.c | 69 krb5_us_timeofday (context, &rdata.timestamp, &rdata.usec); in krb5_mk_priv() 72 part.timestamp = &rdata.timestamp; in krb5_mk_priv() 75 part.timestamp = NULL; in krb5_mk_priv() 80 outdata->timestamp = rdata.timestamp; in krb5_mk_priv()
|
/freebsd/lib/libc/rpc/ |
H A D | svc_auth_des.c | 121 struct timeval timestamp; in _svcauth_des() local 224 timestamp.tv_sec = IXDR_GET_LONG(ixdr); in _svcauth_des() 225 timestamp.tv_usec = IXDR_GET_LONG(ixdr); in _svcauth_des() 246 ×tamp); in _svcauth_des() 257 if ((u_long)timestamp.tv_usec >= USEC_PER_SEC) { in _svcauth_des() 262 if (nick && BEFORE(×tamp, in _svcauth_des() 269 if (!BEFORE(¤t, ×tamp)) { in _svcauth_des() 285 IXDR_PUT_LONG(ixdr, timestamp.tv_sec - 1); in _svcauth_des() 286 IXDR_PUT_LONG(ixdr, timestamp.tv_usec); in _svcauth_des() 317 entry->laststamp = timestamp; in _svcauth_des() [all …]
|
/freebsd/usr.bin/tip/tip/ |
H A D | log.c | 46 char *user, *timestamp; in logent() local 63 timestamp = ctime(&t); in logent() 64 timestamp[24] = '\0'; in logent() 66 user, timestamp, group, in logent()
|
/freebsd/crypto/openssl/crypto/ct/ |
H A D | ct_prn.c | 29 static void timestamp_print(uint64_t timestamp, BIO *out) in timestamp_print() argument 37 (int)(timestamp / 86400000), in timestamp_print() 38 (timestamp % 86400000) / 1000); in timestamp_print() 44 ASN1_STRING_get0_data(gen), (unsigned int)(timestamp % 1000)); in timestamp_print() 100 timestamp_print(sct->timestamp, out); in SCT_print()
|
/freebsd/contrib/kyua/store/ |
H A D | read_transaction_test.cpp | 187 const datetime::timestamp start_time1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() 189 const datetime::timestamp end_time1 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() 191 const datetime::timestamp start_time2 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() 193 const datetime::timestamp end_time2 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY()
|
/freebsd/contrib/kyua/drivers/ |
H A D | report_junit_test.cpp | 145 const datetime::timestamp start = in add_tests() 146 datetime::timestamp::from_microseconds(0); in add_tests() 147 const datetime::timestamp end = in add_tests() 148 datetime::timestamp::from_microseconds(j * 1000000 + 500000); in add_tests() 249 const datetime::timestamp start_time = in ATF_TEST_CASE_BODY() 250 datetime::timestamp::from_values(2015, 6, 12, 1, 2, 35, 123456); in ATF_TEST_CASE_BODY() 251 const datetime::timestamp end_time = in ATF_TEST_CASE_BODY() 252 datetime::timestamp::from_values(2016, 7, 13, 18, 47, 10, 1); in ATF_TEST_CASE_BODY()
|
/freebsd/contrib/unbound/cachedb/ |
H A D | cachedb.c | 381 uint64_t timestamp, expiry; in prep_data() local 429 timestamp = (uint64_t)*qstate->env->now; in prep_data() 430 expiry = timestamp + (uint64_t)qstate->return_msg->rep->ttl; in prep_data() 431 timestamp = htobe64(timestamp); in prep_data() 434 if(oldlim + sizeof(timestamp)+sizeof(expiry) >= in prep_data() 437 sldns_buffer_set_limit(buf, oldlim + sizeof(timestamp)+sizeof(expiry)); in prep_data() 438 sldns_buffer_write_at(buf, oldlim, ×tamp, sizeof(timestamp)); in prep_data() 439 sldns_buffer_write_at(buf, oldlim+sizeof(timestamp), &expiry, in prep_data() 543 uint64_t timestamp, expiry; in parse_data() local 546 if(lim < LDNS_HEADER_SIZE+sizeof(timestamp)+sizeof(expiry)) in parse_data() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/raise/ |
H A D | tst.raise2.d | 43 timeout = timestamp + 1000000000; 54 timeout = timestamp + 500000000; 64 /timestamp > timeout/
|
/freebsd/contrib/elftoolchain/libelftc/ |
H A D | elftc_timestamp.c | 36 elftc_timestamp(time_t *timestamp) in elftc_timestamp() argument 50 *timestamp = source_date_epoch; in elftc_timestamp() 53 *timestamp = time(NULL); in elftc_timestamp()
|