You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Disruptive Solutions <di...@gmail.com> on 2020/07/13 15:41:05 UTC
Millis() equivalent
Is there a millis() equivalent? Where the system timer (milliseconds) is
kept solid in the back? Where you can obtain "passed system time"...
without delay interventions from threads etc?
Re: Millis() equivalent
Posted by Bernd Walter <ti...@cicely7.cicely.de>.
On Mon, Jul 13, 2020 at 05:41:05PM +0200, Disruptive Solutions wrote:
> Is there a millis() equivalent? Where the system timer (milliseconds) is
> kept solid in the back? Where you can obtain "passed system time"...
> without delay interventions from threads etc?
Is this what you mean?
#include <time.h>
...
struct timespec tp;
clock_gettime(CLOCK_MONOTONIC, &tp);
...
--
B.Walter <be...@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.