« first day (2706 days earlier)      last day (516 days later) » 

3:24 PM
A Q&A with lots of people trying to imitate tic/toc in Python, and somehow there is this myth across many answers that you can next tic/toc as if each toc is matched to one tic through a stack. I wonder where this came from? stackoverflow.com/questions/5849800/…
I just spend some time going “well akshually…” :D
There is a Dutch saying that goes “de klok horen luiden maar niet weten waar de klepel hangt” — “hear the bell ring but not know where the clapper is”.
It rather matches this situation well. Someone said “MATLAB supported nested tic/toc, you need more sophistication for that”, then someone else said “just add a stack to allow nested tic/toc”, then people started adding answers that use a stack, thinking this is what MATLAB does. And none of them bothered checking the MATLAB docs to see what it actually can do.
I think that’s good entertainment for Sunday morning. :)
 
 
1 hour later…
4:47 PM
@CrisLuengo not a single mention of perf_counter on the first page :|
 
 
1 hour later…
6:16 PM
Nested tic/toc... How would anyone come to think that Matlab does that?
 
 
1 hour later…
7:24 PM
I imagine that someone called tic twice then called toc twice and got a smaller and a larger number, and concluded that it must have paired the nested tic-tocs as parentheses...
or perhaps they misunderstood mathworks.com/help/matlab/ref/…
 

« first day (2706 days earlier)      last day (516 days later) »