lis_wtime(3)

πŸ“¦ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– lis_wtime(3) β€” the "how long did that take??" timer πŸ’–

okay bestie, so this is a page from the Lis Library Functions manual β€” yes, the whole squad of lis library functions β€” and this one is literally just a stopwatch. It's giving "not me checking my screen time but for code". ✨


🌸 NAME 🌸

lis_wtime β€” measure the elapsed time ⏱️


✨ SYNOPSIS ✨

#include "lis.h"

LIS_INT lis_wtime(LIS_INT* argc, char** argv[]);

πŸ¦‹ DESCRIPTION πŸ¦‹

Measure the elapsed time. That's it, that's the whole vibe. πŸŽ€


πŸ“ INPUT πŸ“

None. Nothing. Zero. Nada. It takes no input, she's self-sufficient, main character energy fr fr. πŸ’…


🌈 OUTPUT 🌈

The elapsed time in seconds from the given point is returned as the double precision number. So like, you get a number back, and that number is seconds, and it's a double precision number. Iconic. πŸ‘‘


πŸ’œ EXIT STATUS πŸ’œ

Here's what you can get back, bestie:

  • 0 β€” The process is normally terminated βœ…
  • unspecified β€” An error occurred 😭

πŸŽ€ NOTE πŸŽ€

To measure the processing time, call lis_wtime to get the starting time, call it again to get the ending time, and calculate the difference. Two calls and a subtraction. That's the whole recipe, no cap. 🫢

Not me explaining this like it's rocket science when it's literally just... start, stop, subtract. But listen, knowing that is the whole point. iykyk. πŸ’€

⭐ SEE ALSO ⭐


and that's the tea, bestie πŸ¦‹ β€” this page came from the Lis Library Functions manual, dated 6 Sep 2012, and yeah, it's the lis_wtime(3) page. Go time some stuff. Periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from