MCPcopy Index your code
hub / github.com/scality/cloudserver / timeDiff

Function timeDiff

tests/unit/helpers.js:61–67  ·  view source on GitHub ↗
(startTime)

Source from the content-addressed store, hash-verified

59}
60
61function timeDiff(startTime) {
62 const timeArray = process.hrtime(startTime);
63 // timeArray[0] is whole seconds
64 // timeArray[1] is remaining nanoseconds
65 const milliseconds = (timeArray[0] * 1000) + (timeArray[1] / 1e6);
66 return milliseconds;
67}
68
69function makeAuthInfo(accessKey, userName) {
70 const canIdMap = {

Callers 1

bucket_mem_api.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected