Download workloads/realworld/async/lavaMD/util/timer/timer.c from lrh12580/UvmPinAsync: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/lrh12580/UvmPinAsync/resolve/main/workloads/realworld/async/lavaMD/util/timer/timer.c
- Command line
-
hf download hf://lrh12580/UvmPinAsync/workloads/realworld/async/lavaMD/util/timer/timer.c
-
curl -L -o timer.c https://huggingface.co/lrh12580/UvmPinAsync/resolve/main/workloads/realworld/async/lavaMD/util/timer/timer.c
2.03 kB
| extern "C" { | |
| //===============================================================================================================================================================================================================200 | |
| // TIMER CODE | |
| //===============================================================================================================================================================================================================200 | |
| //======================================================================================================================================================150 | |
| // INCLUDE/DEFINE | |
| //======================================================================================================================================================150 | |
| //======================================================================================================================================================150 | |
| // FUNCTIONS | |
| //======================================================================================================================================================150 | |
| //====================================================================================================100 | |
| // DISPLAY TIME | |
| //====================================================================================================100 | |
| // Returns the current system time in microseconds | |
| long long get_time() { | |
| struct timeval tv; | |
| gettimeofday(&tv, NULL); | |
| return (tv.tv_sec * 1000000) + tv.tv_usec; | |
| } | |
| //===============================================================================================================================================================================================================200 | |
| // END TIMER CODE | |
| //===============================================================================================================================================================================================================200 | |
| } | |