debug::timestamp(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– debug::timestamp(n) β€” the debug narrative girlies' timestamping page ✨

okay so this is debug::timestamp, and it lives in the debug narrative manual. it's giving "tiny package, huge main character energy" β€” she does timestamps and she does them well. πŸ•πŸ’…


🌸 NAME 🌸

debug::timestamp β€” debug narrative β€” timestamping πŸŽ€


✨ SYNOPSIS ✨

package require Tcl 8.5 9

package require debug::timestamp ?1.1?

package require debug ?1.0.7?

debug timestamp

so bestie, first you need Tcl 8.5 or 9 (yes, either one, we don't gatekeep), then you pull in debug::timestamp β€” version 1.1 is optional there, the ? means "whatever, default's fine" β€” and debug at 1.0.7 is also optional-ish in the same way. then you just call debug timestamp. periodt. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

πŸ’œ API πŸ’œ

  • debug timestamp β€” this method hands you back millisecond timing information since a baseline or since the last time you called it. no cap, that's the whole vibe. which means it's lowkey perfect in a tag-specific prefix, where it'll automatically provide caller info for every use of that tag without you doing anything. or, if you're a "only where I need it" kind of girl, you can drop it straight into a message when just a few specific spots need that level of detail. ✨

😭 BUGS, IDEAS, FEEDBACK 😭

ngl, this document and the package it describes? they will undoubtedly contain bugs and other problems. it's not a vibe, it's just reality. so if you find one, please report it in the debug category of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist]. and if you've got ideas for enhancements β€” for the package, for the docs, for either one, we don't care, we want them β€” report those too. πŸ’Œ

when you're proposing code changes, please send unified diffs, i.e. the output of diff -u. that's the format, that's the rule, iykyk.

also note, and this one matters: attachments are strongly preferred over inlined patches. to attach something, go to the Edit form of the ticket right after you create it, then use the left-most button in the secondary navigation bar. that's the whole treasure map. πŸ—ΊοΈ


🌈 KEYWORDS 🌈

debug, log, narrative, timestamps, trace πŸ‘‘


πŸ“ CATEGORY πŸ“

debugging, tracing, and logging


Copyright (c) 200?, Colin McCormack, Wub Server Utilities
Copyright (c) 2012, Andreas Kupries <andreas_kupries@users.sourceforge.net>

okay and finally, the lil sign-off: this whole thing is tcllib, version 1.1, and it's the debug::timestamp(n) page β€” so if you ever forget where you got your millisecond lore from, it was here, bestie. slay, ate, no notes. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from