A minimal cross-platform stopwatch