Re: Get system time

From: Bob Hauck (postmaster_at_localhost.localdomain)
Date: 08/11/05


Date: Thu, 11 Aug 2005 11:31:44 -0400

On Thu, 11 Aug 2005 14:40:51 GMT, Juanan <jgimenez@siam.es> wrote:

> I want to program a function like the Gettickcount of Windows, that return
> the miliseconds from the start of the system for control timers in my soft.

#include <time.h>

struct timespec tp;

clock_gettime (CLOCK_MONOTONIC, &tp)

-- 
 -| Bob Hauck
 -| A proud member of the reality-based community.
 -| http://www.haucks.org/


Relevant Pages

  • Re: Dell Laptop SD Card Slot
    ... 0000:02:04.3 Unknown mass storage controller: Texas Instruments ... This is the culprit on my 700m. ... -- -| Bob Hauck ... -| A proud member of the reality-based community. ...
    (comp.os.linux.misc)
  • Re: Where is my mouse???
    ... it simply updates the list of packages. ... Yeah, it does. ... -| Bob Hauck ... -| A proud member of the unhinged moonbat horde. ...
    (comp.os.linux.misc)
  • Re: How to install Ubuntu without (Gnome/KDE) desktop?
    ... > while I do not want a bloat Desktop(just a window manager can do) ... Use Debian Sid? ... -- -| Bob Hauck ... -| A proud member of the reality-based community. ...
    (comp.os.linux.misc)
  • Re: good serial comm program for Linux
    ... I use minicom and picocom. ... -| Bob Hauck ... -| A proud member of the unhinged moonbat horde. ...
    (comp.os.linux.misc)