Download samples/android/tutorial-4-opencl/jni/common.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/samples/android/tutorial-4-opencl/jni/common.hpp
- Command line
-
hf download hf://tgollogly/test/samples/android/tutorial-4-opencl/jni/common.hpp
-
curl -L -o common.hpp https://huggingface.co/tgollogly/test/resolve/main/samples/android/tutorial-4-opencl/jni/common.hpp
546 Bytes
| //#define LOGD(...) | |
| static inline int64_t getTimeMs() | |
| { | |
| struct timespec now; | |
| clock_gettime(CLOCK_MONOTONIC, &now); | |
| return (int64_t) now.tv_sec*1000 + now.tv_nsec/1000000; | |
| } | |
| static inline int getTimeInterval(int64_t startTime) | |
| { | |
| return int(getTimeMs() - startTime); | |
| } | |