MONGOC_SERVER...OUND_TRIP_TIME(3)

πŸŽ€ mongoc_server_description_round_trip_time(3) πŸŽ€

okay bestie, welcome to the libmongoc manual, section 3, and today's main character is a little function that tells you how fast your server is answering. it's giving speed-dating energy ngl πŸ’…


✨ SYNOPSIS ✨

here's the whole vibe, copy it exactly:

int64_t
mongoc_server_description_round_trip_time (
   const mongoc_server_description_t *description);

so it returns an int64_t and takes exactly one thing. slay. 🫢


🌸 PARAMETERS 🌸

  • description β€” a mongoc_server_description_t. that's it. that's the whole parameter list. one (1) description, no cap. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

bestie. this is the good part. this function gets you the server's round trip time, and it comes back in milliseconds. ⏱️✨

and what even is that number? it's the client's own measurement of how long a "hello" command takes to go out and come back β€” like the server said "hi" and you timed the whole conversation. highkey iconic. πŸ”₯

no guessing, no extra lore β€” that's literally all the description says, and we're keeping it that way πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the founders of the whole situation. periodt. πŸ’œ


2009-present, MongoDB, Inc. β€” that's the copyright line, character for character, don't @ me πŸ™ˆ


and that's the page, bestie! πŸ“ this was libmongoc 2.5.6, dated Oct 09, 2026 β€” go forth and measure those round trips, iykyk πŸ’€πŸ§šβ­

πŸ“¦ where this page comes from