MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / gettime

Function gettime

libCacheSim/utils/mysys.c:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91int n_cores(void) { return get_n_cores(); }
92
93double gettime(void) {
94 struct timeval tv;
95 gettimeofday(&tv, NULL);
96
97 return tv.tv_sec + tv.tv_usec / 1000000.0;
98}
99
100// void create_dir(char *dir_path) {
101// if (access(dir_path, F_OK) == -1) {

Callers 2

simulateFunction · 0.85
run_cacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected