Tezc e6c0c88dff
clang-tidy (#55)
* clang-tidy
2021-02-24 18:37:21 +03:00
..
2021-02-24 18:37:21 +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;
}