login about faq

CkDateTime DateTime;

FILETIME ftDateTime;

LARGE_INTEGER liDateTime,liSystemTime;

DateTime.SetFromCurrentSystemTime();

DateTime.GetAsFileTime(false,ftDateTime);

liDateTime.HighPart = ftDateTime.dwHighDateTime;

liDateTime.LowPart = ftDateTime.dwLowDateTime;

GetSystemTimeAsFileTime((LPFILETIME)&liSystemTime);

sample values obtained :

liSystemTime {131119968964705422} _LARGE_INTEGER

liDateTime {131119968960000000} _LARGE_INTEGER

Lost in precision ie. missing 470xxxx...

(GetAsDateTimeTicks, I believe 100nanosecs ticks are also missing)

Is this correct ?

Fya.

asked Jul 03 at 01:36

dragon's gravatar image

dragon
333711

edited Jul 03 at 02:00


Yes, this is correct. The CkDateTime class is meant to be a cross-platform, cross-language class for date/time representations. It is meant to provide a means for accessing date/time information and converting to/from many different formats.

It is not intended to be a tool for precision timing.

link

answered Jul 06 at 09:07

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3

Asked: Jul 03 at 01:36

Seen: 226 times

Last updated: Jul 06 at 09:07

powered by OSQA