MONGOC_APM_CO...D_GET_DURATION(3)

πŸ’… MONGOC_APM_CO...D_GET_DURATION(3) β€” no cap, the whole name is mongoc_apm_command_succeeded_get_duration

okay so bestie, welcome to the libmongoc corner of the manual πŸŽ€ this one lives in the libmongoc manual and it's literally the shortest little baddie β€” a single function that tells you how long a command took. that's it. that's the whole vibe. ✨

Your girl's full title got cut off in the header (MONGOC_APM_CO...D_GET_DURATION(3) β€” the truncation is sending me 😭), but the real function name is mongoc_apm_command_succeeded_get_duration, and yes it ate. πŸ’…


✨ SYNOPSIS ✨

int64_t
mongoc_apm_command_succeeded_get_duration (
   const mongoc_apm_command_succeeded_t *event);

Returns this event's duration in microseconds. ⏱️ (microseconds, bestie β€” tiny tiny units, so yes, do the math before you panic about the number.)


🌸 PARAMETERS 🌸

  • event β€” A mongoc_apm_command_succeeded_t. like, the event. the one that succeeded. hand it over and she'll tell you its duration. 🫢

⭐ RETURNS ⭐

The event's duration. that's the whole return value, no plot twist, no surprise fields, just the duration. πŸ’–

πŸ¦‹ SEE ALSO: πŸ¦‹

  • Introduction to Application Performance Monitoring β€” go read it, it's the lore iykyk πŸ“–βœ¨

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the icons themselves. πŸ™Œ


2009-present, MongoDB, Inc.


ngl this is the easiest page in the whole manual. one function, one parameter, one return value, zero drama. 🌈

libmongoc version 2.5.6, dated Oct 09, 2026 β€” mwah, that's a wrap bestie, go time your commands πŸ’œπŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from