Hi everyone!
A question, that I was asked and knew no answer to:
For time, normally the class clock is used, but that's only exact to the second. If however milliseconds are wanted, how can you get them? And no, multiplying it with 1000 is not a solution, because it's still no more exact.
Basically, I'm looking for something like Java's - System.currentTimeMillis()
Greetings,
Nepomuk
2 1951
Hi everyone!
A question, that I was asked and knew no answer to:
For time, normally the class clock is used, but that's only exact to the second. If however milliseconds are wanted, how can you get them? And no, multiplying it with 1000 is not a solution, because it's still no more exact.
Basically, I'm looking for something like Java's - System.currentTimeMillis()
Greetings,
Nepomuk
You can get it by using clock_gettime in unix and _ftime in windows.
Check this link for an example
raghuram
You can get it by using clock_gettime in unix and _ftime in windows.
Check this link for an example
raghuram
Thanks, that should help a lot!
Greetings,
Nepomuk
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Richard Visser |
last post by:
Hi, i've found this DateRangeSelector :
http://www.petrafex.com/view/pgID/21/db/pages/date_range_selector_date_manip
ulation__dates_.html . This works fine but i need it to send the dates as :...
|
by: Kevin Thomas |
last post by:
Hello,
I have a date value in a table SQL Server database that looks like this:
2005-10-11 12:54:36.860
When I load the record into a dataset in VB.NET and retrieve the date value
into code,...
|
by: S_at_work |
last post by:
hello,
can anybody give me a piece of code , or a hint , how i can recieve the
time i need for connect() to another host in milliseconds.
My problem is i want test the performance of...
|
by: HL |
last post by:
I am using VS 2005 Beta - C#
Problem: The Timer fires a few milliseconds before the actual Due-Time
Let's say a timer is created in the following manner:
System.Threading.Timer m_timer = null;...
|
by: Harlin Seritt |
last post by:
How can I take a time given in milliseconds (I am doing this for an
uptime script) and convert it to human-friendly time i.e. "4 days, 2
hours, 25 minutes, 10 seonds."? Is there a function from the...
|
by: Rajat |
last post by:
Hi,
I have to draw a real time chart in which I have several entries at the same
second (i.e. HH:MM:SS:Milleconds)
The charting component only takes julian date for drawing the dates.
I am...
|
by: Sharon |
last post by:
I need to test a performance of some code of mine.
I tried using the Environment.TickCount but its resolution is too low (from
the MSDN remarks: The resolution of the TickCount property cannot be...
|
by: vinodtr |
last post by:
Hi all,
I have a date which is represented by the number of milliseconds since January 01, 1970. I need to change this back to DATE format. Is there any built in function in DB2 to do the needed...
|
by: Manikandan |
last post by:
Hi,
I need to insert the datetime with milliseconds value into a datarow.
My code as below
DataTable testDataTable=new DataTable();
testDataTable.Columns.Add("updatedDateTime",...
|
by: Nathan Sokalski |
last post by:
I have a control uses the date and time, including milliseconds. I want to
be able to enter this information as an attribute in the *.aspx page.
Because all attributes are entered as strings in the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |