i'm adding my first new feature to #fbp since inheriting the project, a system clock that sits on the keyboard statusline, and i'm using the C time library because there isn't a good one in the zig standard library. for whatever reason, it works just fine with optimizations off (-Doptimize=Debug) but spits out garbage time values when optimizations are on (-Doptimize=ReleaseFast). this is gonna be a pain to figure out
figured it out! i didn't understand that taking a slice of an array creates a pointer, and trying to print that directly obviously doesn't print the values being pointed to. i understand the concept of #zig slices now, so that's cool. last thing to figure out is why the ui seems slow to unresponsive on the pinephone pro!