Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 14 Jul 2002 14:41:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 14 Jul 2002 14:41:18 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:4615 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Sun, 14 Jul 2002 14:41:17 -0400 Date: Sun, 14 Jul 2002 11:46:24 -0700 (PDT) From: Linus Torvalds To: "Albert D. Cahalan" cc: Tim Schmielau , lkml Subject: Re: What is supposed to replace clock_t? In-Reply-To: <200207132015.g6DKFsH103416@saturn.cs.uml.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 972 Lines: 26 On Sat, 13 Jul 2002, Albert D. Cahalan wrote: > Linus Torvalds writes: > > > The only sane interface is a seconds-based one, either like /proc/uptime > > (ie ASCII floating point representation) or a mixed integer representation > > like timeval/timespec where you have seconds and micro/nanoseconds > > separately. > > Anything wrong with 64-bit nanoseconds? It's easy to work with, > being an integer type, and it survives the year 2038. That still counts as being "seconds-based" in my book - the problem with clock_t (and jiffies) has always been that it has been based not on a globally defined time-standard, but on an implementation issue. And we want to be able to change the implementation issue at will. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/