Hi,

I suppose vlib_time_now can return different times on different workers.
If I want to have some global notion of time between workers (and
possibly main thread), what would be the best way, please suggest.

I thought of passing the vm of main thread for the above usecase, from
workers, while calling vlib_time_now but that seems like a
spectacularly bad idea as the code inside  modifies some variables
related to time inside the vm (and therefore looks like one must pass
the correct vm from the correct thread)

Is it ok to use a combination of os_cpu_clock_frequency() and
clib_cpu_time_now ?

Regards
-Prashant
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13158): https://lists.fd.io/g/vpp-dev/message/13158
Mute This Topic: https://lists.fd.io/mt/31820577/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to