Tezc 950d6f191b
Build test on debug only (#45)
* Build tests in debug mode only, fix gcc warnings
* strncpy fix in thread err
2021-02-16 04:23:08 +03:00
..
2021-02-07 22:31:04 +03:00
2021-02-16 04:23:08 +03:00
2021-02-14 16:19:26 +03:00
2021-02-07 22:31:04 +03:00
2021-02-10 21:33:03 +03:00

Time functions

Overview

  • Time and sleep functions for Posix and Windows

Usage


#include "sc_time.h"

#include <stdio.h>

int main(int argc, char *argv[])
{
    uint64_t t = sc_time_ms();
    sc_time_sleep(1000);
    printf("%lu \n", (unsigned long) (sc_time_ms() - t));

    return 0;
}