assuming that your program will have PUNCH IN and PUNCH OUT buttons, then a timeclock table with consumer id, punch-in, and punch-out fields is a good tacticThe initial query especially asked for Unix but multiple responses have touched on Windows, and Therefore there is misleading information on windows. The default timer resolution on windows is