MCPcopy Create free account
hub / github.com/apache/impala / AddTestDataTimes

Function AddTestDataTimes

be/src/benchmarks/parse-timestamp-benchmark.cc:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void AddTestDataTimes(TestData* data, int n, const string& startstr) {
99 time_duration start(duration_from_string(startstr));
100 for (int i = 0; i < n; ++i) {
101 int val = rand();
102 start += nanoseconds(val);
103 if (start.hours() >= 24) start -= hours(24);
104 stringstream ss;
105 ss << to_simple_string(start);
106 AddTestData(data, ss.str());
107 }
108}
109
110void AddTestDataDateTimes(TestData* data, int n, const string& startstr) {
111 ptime start(boost::posix_time::time_from_string(startstr));

Callers 1

mainFunction · 0.85

Calls 2

AddTestDataFunction · 0.70
strMethod · 0.45

Tested by

no test coverage detected