Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?… – 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
up vote 1 down vote accepted

You may not like this ...

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

Get output like

share|improve this answer

Your Answer


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.