MCPcopy Index your code
hub / github.com/sql-js/sql.js / _gettimeofday

Function _gettimeofday

js/sql-debug.js:5048–5053  ·  view source on GitHub ↗
(ptr)

Source from the content-addressed store, hash-verified

5046 }
5047
5048 function _gettimeofday(ptr) {
5049 var now = Date.now();
5050 HEAP32[((ptr)>>2)]=(now/1000)|0; // seconds
5051 HEAP32[(((ptr)+(4))>>2)]=((now % 1000)*1000)|0; // microseconds
5052 return 0;
5053 }
5054
5055
5056

Callers 2

_unixCurrentTimeFunction · 0.70
_unixCurrentTimeInt64Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…