This gnu date command lets me get milliseconds this way:
date +%M:%S.%N;
but this command doesn't work on solaris... any ideas?
|
This gnu date command lets me get milliseconds this way:
but this command doesn't work on solaris... any ideas?
| |||
|
feedback
|
|
This "shell script" should display milliseconds:
Of course, you can relocate time_ms in your PATH and call it directly after the first run. That will provide a faster solution than gnu date or any perl/whatever script. | |||||||
feedback
|
|
The most likely explanation is that Solaris doesn't use GNU date or doesn't have the latest version. The Solaris man page for date doesn't mention the If you need the milliseconds, your best bet is to download the latest GNU coreutils and install it under | |||||||||||||
feedback
|
|
Perl is almost everywhere. Use:
If you really need millisecond accuracy, try the [EDIT] Alternatively, compile a small C program which calls | |||||||
feedback
|
|
If you're measuring the time taken by a part of the script, you can put this part of the script in a function and call | |||
|
feedback
|