aboutsummaryrefslogtreecommitdiff
path: root/src/tests/minicron.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/minicron.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/tests/minicron.cpp b/src/tests/minicron.cpp
index 8abf8ad..0749f90 100644
--- a/src/tests/minicron.cpp
+++ b/src/tests/minicron.cpp
@@ -41,11 +41,14 @@ void job3( Bu::MiniCron::Job &job )
41 41
42int main() 42int main()
43{ 43{
44 44 mCron.addJob(
45 mCron.addJob( slot( &job0 ), MiniCron::TimerInterval( time(NULL)+3, 5 ) ); 45 "job0", slot( &job0 ), MiniCron::TimerInterval( time(NULL)+3, 5 ) );
46 mCron.addJob( slot( &job1 ), MiniCron::TimerInterval( time(NULL)+10, 8 ) ); 46 mCron.addJob(
47 mCron.addJob( slot( &job2 ), MiniCron::TimerBasic("weekly wed 17") ); 47 "job1", slot( &job1 ), MiniCron::TimerInterval( time(NULL)+10, 8 ) );
48 mCron.addJob( slot( &job3 ), MiniCron::TimerInterval( time(NULL)+1, 2 ) ); 48 mCron.addJob(
49 "job2", slot( &job2 ), MiniCron::TimerBasic("weekly wed 17") );
50 mCron.addJob(
51 "job3", slot( &job3 ), MiniCron::TimerInterval( time(NULL)+1, 2 ) );
49 52
50 sio << time( NULL ) << ": Program started." << sio.nl; 53 sio << time( NULL ) << ": Program started." << sio.nl;
51 54