--- title: "instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for \"milliseconds\") to use cheap math, such as bit shifts." type: archive source: twitter source_url: "https://x.com/VPCOMPRESSB/status/2100820105290481713" author: "/i:'mɪər/" handle: VPCOMPRESSB post_id: "2100820105290481713" date: 2026-09-18 archived: 2026-11-16 draft: false tags: - archive - twitter - VPCOMPRESSB description: "instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for \"milliseconds\") to use cheap math, such as bit shifts." in_reply_to: "" --- ## Source - URL: https://x.com/VPCOMPRESSB/status/2100820105290481713 - Author: /i:'mɪər/ (@VPCOMPRESSB) - Posted: 2026-09-18 05:31:59 ## Thread **1/** **@VPCOMPRESSB** ^2100820105290481713 instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for "milliseconds") to use cheap math, such as bit shifts. ![](https://pbs.twimg.com/media/HSecwM_XAAAQQRx?format=jpg&name=orig) **2/** **@VPCOMPRESSB** ^2100820108067152277 if i ever, rarely, need a decimal time, then it's as easy as converting $ to ₽. **3/** **@VPCOMPRESSB** ^2100820111120543909 i'm not a fan of `QueryPerformanceCounter`. i've used `SYSTEM_HYPERVISOR_USER_SHARED_DATA` to translate `RDTSCP` into a standard time, but Microsoft's docs regarding `RDTSCP` is scary.