zeek/testing/btest/bifs/to_double.bro
Jon Siwek 95ffb1cf27 Quick pass over unit tests, adding -b flag to bro so they run faster.
Doing this made bifs/ ~3x faster and language/ ~2x faster.
2012-11-30 17:44:36 -06:00

20 lines
381 B
Text

#
# @TEST-EXEC: bro -b %INPUT >out
# @TEST-EXEC: btest-diff out
event bro_init()
{
local a = 1 usec;
print interval_to_double(a);
local b = 1sec;
print interval_to_double(b);
local c = -1min;
print interval_to_double(c);
local d = 1hrs;
print interval_to_double(d);
local e = 1 day;
print interval_to_double(e);
local f = current_time();
print time_to_double(f);
}