MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / DecodeDuration

Function DecodeDuration

internal/proto_time_encoding.cc:56–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54} // namespace
55
56absl::Duration DecodeDuration(const google::protobuf::Duration& proto) {
57 return absl::Seconds(proto.seconds()) + absl::Nanoseconds(proto.nanos());
58}
59
60absl::Time DecodeTime(const google::protobuf::Timestamp& proto) {
61 return absl::FromUnixSeconds(proto.seconds()) +

Callers 5

CreateDurationMethod · 0.85
ValueFromMessageMethod · 0.85
TESTFunction · 0.85
FromObjectFunction · 0.85
ConstantFromProtoFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68