simTime()

19 views
Skip to first unread message

simin hamidi

unread,
Aug 31, 2014, 2:58:16 PM8/31/14
to omn...@googlegroups.com
hey guys! i need to collect the int value of simTime()... what shoud i do?

Alfonso Ariza Quintana

unread,
Aug 31, 2014, 3:05:05 PM8/31/14
to omn...@googlegroups.com
I suppose that you want the time rounded to seconds

// to the lower integer
double i = floor(SIMTIME_DBL(simTime()));
// to upper integer
double i = ceil(SIMTIME_DBL(simTime()));
// to nearest integer
double i = round(SIMTIME_DBL(simTime()));


Date: Sun, 31 Aug 2014 11:58:16 -0700
From: simin.h...@gmail.com
To: omn...@googlegroups.com
Subject: [Omnetpp-l] simTime()


hey guys! i need to collect the int value of simTime()... what shoud i do?

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages