MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / SetTime

Method SetTime

lib/mdflib/mdflib/src/mdf4timestamp.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void Mdf4Timestamp::SetTime(uint64_t time) {
46 time_ = time;
47 tz_offset_ = 0;
48 dst_offset_ = 0;
49 flags_ = TimestampFlag::kUtcTimestamp;
50}
51void Mdf4Timestamp::SetTime(ITimestamp &timestamp) {
52 time_ = timestamp.GetTimeNs();
53 if (dynamic_cast<UtcTimestamp *>(&timestamp)) {

Callers 7

cpp_exampleFunction · 0.45
Fh4BlockMethod · 0.45
TimeMethod · 0.45
Hd3BlockMethod · 0.45
StartTimeMethod · 0.45
Hd4BlockMethod · 0.45
StartTimeMethod · 0.45

Calls 3

GetTimezoneMinMethod · 0.80
GetDstMinMethod · 0.80
GetTimeNsMethod · 0.45

Tested by 1

cpp_exampleFunction · 0.36