Rafael Delboni dbfc70491c
Option to turn off tests in the build (#42)
* feat: Option to turn of tests

* feat: Option to turn of tests

* fix: Removes test check on coverage

* docs: Force update options cache
2021-02-14 19:49:21 +03:00
..
2021-02-07 22:31:04 +03:00
2021-02-10 21:33:03 +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;
}