Home
last modified time | relevance | path

Searched refs:one_second (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/src/google/protobuf/util/
Dtime_util_test.cc252 Duration one_second = TimeUtil::SecondsToDuration(1); in TEST() local
256 Duration a = one_second; in TEST()
257 a += one_second; in TEST()
281 TimeUtil::ToString((one_second - one_nano) * 315576000000LL)); in TEST()
283 TimeUtil::ToString((one_nano - one_second) * 315576000000LL)); in TEST()
285 TimeUtil::ToString((one_second - one_nano) * (-315576000000LL))); in TEST()
316 EXPECT_TRUE(one_nano < one_second); in TEST()
317 EXPECT_FALSE(one_second < one_second); in TEST()
318 EXPECT_FALSE(one_second < one_nano); in TEST()
319 EXPECT_FALSE(-one_nano < -one_second); in TEST()
[all …]
/external/libevent/test/
Dregress_bufferevent.c866 struct timeval one_second = { 1, 0 }; in test_bufferevent_connect_fail() local
889 event_add(&close_listener_event, &one_second); in test_bufferevent_connect_fail()
/external/python/cpython3/Modules/
D_datetimemodule.c5717 PyObject *one_second; in local_timezone() local
5723 one_second = new_delta(0, 1, 0, 0); in local_timezone()
5724 if (one_second == NULL) { in local_timezone()
5729 (PyDateTime_Delta *)one_second); in local_timezone()
5730 Py_DECREF(one_second); in local_timezone()