MCPcopy Create free account
hub / github.com/couchbase/forestdb / timed_fdb_set

Function timed_fdb_set

utils/timing.cc:62–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62ts_nsec timed_fdb_set(fdb_kvs_handle *kv, fdb_doc *doc){
63
64 ts_nsec start, end;
65 fdb_status status;
66
67 start = get_monotonic_ts();
68 status = fdb_set(kv, doc);
69 end = get_monotonic_ts();
70
71 if(status == FDB_RESULT_SUCCESS){
72 return ts_diff(start, end);
73 } else {
74 return ERR_NS;
75 }
76}
77
78ts_nsec timed_fdb_get(fdb_kvs_handle *kv, fdb_doc *doc){
79

Callers

nothing calls this directly

Calls 2

get_monotonic_tsFunction · 0.85
ts_diffFunction · 0.85

Tested by

no test coverage detected