Thursday, September 26, 2013

A Twisty Maze of Linux Clocks, All Slightly Different (

Pardon me while I indulge my inner geek. I'm going to talk about how clocks work in Linux. Why am I doing this? Because you need to know. It's confusing, complicated, and not terribly well documented (yet). But mostly because I want to indulge my inner geek.

Clocks and timers can be a bit confusing. There are a lot of them, and they all seem to work slightly differently. This post describes the clocks available in Linux, from the most common (time() and gettimeofday()) to the more esoteric (clock_gettime() and the latest clock IDs. Read more...