(startTime)
| 59 | } |
| 60 | |
| 61 | function 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 | |
| 69 | function makeAuthInfo(accessKey, userName) { |
| 70 | const canIdMap = { |