Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to measure the time of start for a program but for this I want to get the timestamp in Windows, but I need to get the time-stamp in mili-seconds since the Unix epoch format. (The Unix epoch is the time 00:00:00 UTC on 1 January 1970 (or 1970-01-01T00:00:00Z ISO 8601).)

How can I get timestamp in milseconds since Unix epoch through a Windows command?

share|improve this question
    
Have you looked at this question? stackoverflow.com/questions/3454112/… –  Richard May 7 '13 at 21:08
    
@Richard No, but I looked now and 1) first answer is in seconds. 2) second answer is not so clear. 3) seems to be about epoch in general not Unix epoch. 4) I need something to get the time stamp without getting too much overhead and I don't know how much it takes to run cscript. –  Eduard Florinescu May 7 '13 at 21:16
add comment

1 Answer 1

up vote 1 down vote accepted

You may not like this ...

Load cygwin onto your PC (www.cygwin.org)
create a script that executes commands
date +%s.%N
your_applicaiton
date +%s.%N
Open a bash shell
Run the script

Get output like
1369457045.186880000
1369457053.766895000

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.