请教如何输出毫秒

请问怎么输出毫秒?比如2011/12/16 17:45:30.123123的部分tm这个东西好像不支持毫秒[解决办法]_ftimeGets t

请问怎么输出毫秒?
比如
2011/12/16 17:45:30.123

123的部分

tm这个东西好像不支持毫秒

[解决办法]
_ftime
Gets the current time.

void _ftime( struct _timeb *timeptr );

Function Required Header Compatibility 
_ftime <sys/types.h> and <sys/timeb.h> Win 95, Win NT 


For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version 
LIBCMT.LIB Multithread static library, retail version 
MSVCRT.LIB Import library for MSVCRT.DLL, retail version 


Return Value

_ftime does not return a value, but fills in the fields of the structure pointed to by timeptr.

Parameter

timeptr

Pointer to _timeb structure

Remarks

The _ftime function gets the current local time and stores it in the structure pointed to by timeptr. The _timeb structure is defined in SYS\TIMEB.H. It contains four fields:

dstflag

Nonzero if daylight savings time is currently in effect for the local time zone. (See _tzset for an explanation of how daylight savings time is determined.)

millitm

Fraction of a second in milliseconds.

time

Time in seconds since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC).

timezone

Difference in minutes, moving westward, between UTC and local time. The value of timezone is set from the value of the global variable _timezone (see _tzset).


[解决办法]
SYSTEMTIME st;
GetLocalTime(&st);
printf("%04d/%02d/%02d %02d:%02d:%02d:%04d\n",st.wYear ......);
[解决办法]
gettimeofday.