Units of time when using ToBinary() method of DateTime
-
Does any one know the units of time used by the ToBinary method of DateTime? For example
long start = DateTime.Now.ToBinary(); Sleep(1000); long elapsed = DateTime.Now.ToBinary()-start;
The variable elapsed will be in the range of 10,000,000. What does this value represent? Is it tenths of a micro second or some other unit of time? Thanks James johnson
-
Does any one know the units of time used by the ToBinary method of DateTime? For example
long start = DateTime.Now.ToBinary(); Sleep(1000); long elapsed = DateTime.Now.ToBinary()-start;
The variable elapsed will be in the range of 10,000,000. What does this value represent? Is it tenths of a micro second or some other unit of time? Thanks James johnson
WBurgMo wrote:
The variable elapsed will be in the range of 10,000,000.
I am not sure it will be in this range. Value you are getting is a signed 64-bit number.
WBurgMo wrote:
Is it tenths of a micro second or some other unit of time?
Here is what MSDN says, Serializes the current
DateTime
object to a 64-bit binary value that subsequently can be used to recreate the DateTime object.Navaneeth How to use google | Ask smart questions