[Click] time
Roman Chertov
rchertov at purdue.edu
Fri Jul 27 11:47:32 EDT 2007
JS wrote:
> Hi everyone,
> I have a very simple question. I need to have the current time in millisec.
> I have seen in the documentation that I will have to use timestamp. But I
> don't really understand how this works... Do I simply need to do
>
> double current_time= Timestamp::now();
Are you in the kernel mode or user mode? In user mode you would do this
Timestamp::now().doubleval(); If you are in kernel, you cannot use
doubles or any floating point arithmetic for that matter. You will have
to keep the sec and msec in separate integers.
Roman
>
> Or I am missing something?
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list