MCPcopy Create free account
hub / github.com/davisking/dlib / get_timestamp

Method get_timestamp

dlib/misc_api/misc_api_kernel_2.cpp:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70// ----------------------------------------------------------------------------------------
71
72 uint64 timestamper::
73 get_timestamp (
74 ) const
75 {
76 uint64 ts;
77 timeval curtime;
78 gettimeofday(&curtime,0);
79
80 ts = curtime.tv_sec;
81 ts *= 1000000;
82 ts += curtime.tv_usec;
83 return ts;
84 }
85
86// ----------------------------------------------------------------------------------------
87

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected