You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "I.B." <ig...@gmail.com> on 2007/01/23 21:43:19 UTC

time function

Hi,
 i am using jmeter 2.1.1 for a long time but still cant figure out how
to get milliseconds from built-in time fucntion, i am using component
"user defined variables" with following syntax:
${__time(timestamp)}

but ${timestamp} variable doesnt' get value

as a fact i ended up using ${__BeanShell(time())}

what am i missing here?

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: time function

Posted by "I.B." <ig...@gmail.com>.
clear on this, thank you.

dont want to confuse anyone, in beanshell i meant:
${__BeanShell(System.currentTimeMillis())}

not BeanShell(time())


On 1/23/07, sebb <se...@gmail.com> wrote:
> On 23/01/07, I. B. <ig...@gmail.com> wrote:
> > jmeter2.2 works, but variable name is not accepted as parameter.
> > someone should modify jmeter functions' documentation.
>
> Why? Seems correct to me:
>
> http://jakarta.apache.org/jmeter/usermanual/functions.html#__time
>
> > On 1/23/07, I. B. <ig...@gmail.com> wrote:
> > > Hi,
> > >  i am using jmeter 2.1.1 for a long time but still cant figure out how
> > > to get milliseconds from built-in time fucntion, i am using component
> > > "user defined variables" with following syntax:
> > > ${__time(timestamp)}
>
> __time() is not implemented in 2.1.1
>
> > >
> > > but ${timestamp} variable doesnt' get value
> > >
> > > as a fact i ended up using ${__BeanShell(time())}
> > >
> > > what am i missing here?
> > >
>
> See above
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: time function

Posted by sebb <se...@gmail.com>.
On 23/01/07, I. B. <ig...@gmail.com> wrote:
> jmeter2.2 works, but variable name is not accepted as parameter.
> someone should modify jmeter functions' documentation.

Why? Seems correct to me:

http://jakarta.apache.org/jmeter/usermanual/functions.html#__time

> On 1/23/07, I. B. <ig...@gmail.com> wrote:
> > Hi,
> >  i am using jmeter 2.1.1 for a long time but still cant figure out how
> > to get milliseconds from built-in time fucntion, i am using component
> > "user defined variables" with following syntax:
> > ${__time(timestamp)}

__time() is not implemented in 2.1.1

> >
> > but ${timestamp} variable doesnt' get value
> >
> > as a fact i ended up using ${__BeanShell(time())}
> >
> > what am i missing here?
> >

See above

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: time function

Posted by "I.B." <ig...@gmail.com>.
jmeter2.2 works, but variable name is not accepted as parameter.
someone should modify jmeter functions' documentation.

On 1/23/07, I. B. <ig...@gmail.com> wrote:
> Hi,
>  i am using jmeter 2.1.1 for a long time but still cant figure out how
> to get milliseconds from built-in time fucntion, i am using component
> "user defined variables" with following syntax:
> ${__time(timestamp)}
>
> but ${timestamp} variable doesnt' get value
>
> as a fact i ended up using ${__BeanShell(time())}
>
> what am i missing here?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org