Add RTC_EXPORT to TimeUTCMicros (2nd try)

In https://webrtc-review.googlesource.com/c/src/+/355181 I supposed to add RTC_EXPORT to the TimeUTCMicros function. However in the code I added it to TimeUTCMillis(). I hadn't realized there where two similar functions, so I did a poor error check.

I think it make sense to have RTC_EXPORT on both of them, since they are similar. So I opted to not revert the change in the previous faulty CL.

Bug: chromium:333359951
Change-Id: Icb3d3adeebd4fbf56244986a9e801bee84ff04df
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/355760
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42546}
This commit is contained in:
Olov Brändström 2024-06-26 12:46:04 +02:00 committed by WebRTC LUCI CQ
parent 20b8e33a3f
commit c2c6442ad5

View File

@ -129,7 +129,7 @@ int64_t TmToSeconds(const tm& tm);
// system time is changed, e.g., by some other process calling // system time is changed, e.g., by some other process calling
// settimeofday. Always use rtc::TimeMicros(), not this function, for // settimeofday. Always use rtc::TimeMicros(), not this function, for
// measuring time intervals and timeouts. // measuring time intervals and timeouts.
int64_t TimeUTCMicros(); RTC_EXPORT int64_t TimeUTCMicros();
// Return the number of milliseconds since January 1, 1970, UTC. // Return the number of milliseconds since January 1, 1970, UTC.
// See above. // See above.