MCPcopy Create free account
hub / github.com/boostorg/build / timestamp_current

Function timestamp_current

v2/engine/timestamp.c:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125void timestamp_current( timestamp * const t )
126{
127#ifdef OS_NT
128 /* GetSystemTimeAsFileTime()'s resolution seems to be about 15 ms on Windows
129 * XP and under a millisecond on Windows 7.
130 */
131 FILETIME ft;
132 GetSystemTimeAsFileTime( &ft );
133 timestamp_from_filetime( t, &ft );
134#else /* OS_NT */
135 timestamp_init( t, time( 0 ), 0 );
136#endif /* OS_NT */
137}
138
139
140int timestamp_empty( timestamp const * const time )

Callers 4

make1cFunction · 0.85
exec_cmdFunction · 0.85
exec_waitFunction · 0.85
mainFunction · 0.85

Calls 2

timestamp_from_filetimeFunction · 0.85
timestamp_initFunction · 0.85

Tested by

no test coverage detected