lis_wtime(3f)

๐Ÿ“ฆ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

๐Ÿ’– lis_wtime(3f) โ€” bestie edition ๐Ÿ’–

okay so you're deep in the Lis Library Functions manual, and this little cutie is called lis_wtime. she does ONE job and she does it flawlessly, no cap. โœจ


๐ŸŒธ NAME ๐ŸŒธ

lis_wtime โ€” measure the elapsed time โฑ๏ธ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

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

like. that's the whole thing. she's serving minimalism. ๐Ÿ‘‘


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Measure the elapsed time. ๐Ÿ•ฐ๏ธโœจ

that's it. that's the girl. no drama, no extra lore, just time being measured fr fr.


๐ŸŒˆ INPUT ๐ŸŒˆ

None ๐Ÿ’€

literally nothing. she needs zero input. she's self-sufficient. main character energy only. ๐Ÿซถ


โญ OUTPUT โญ

The elapsed time in seconds from the given point is returned as the double precision number ๐Ÿ”ฅ

so you get your seconds back, in double precision, counting from whatever point you decided to start at. periodt. ๐Ÿ’–


๐Ÿ“ NOTE ๐Ÿ“

okay bestie listen up because this is the whole vibe check of the function ๐Ÿ‘‡

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. ๐Ÿงฎโœจ

so like:

  1. call lis_wtime โ€” that's your starting time ๐ŸŒฑ
  2. do the thing you wanted to time ๐Ÿƒโ™€๏ธ
  3. call lis_wtime again โ€” that's your ending time ๐ŸŒ…
  4. subtract. boom. that's your processing time. ๐ŸŽ€
she doesn't do the subtraction for you, bestie. that part is on you. iykyk ๐Ÿ’…

๐Ÿ’œ SEE ALSO ๐Ÿ’œ


okay that's the page!! ๐Ÿฅณ written up as a Man Page on 6 Sep 2012, from the lis_wtime(3f) era of the Lis Library Functions docs โ€” ancient but still slaying. hope this helped bestie, go measure some time ๐Ÿ•ฐ๏ธ๐Ÿ’–โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from