File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ use std::ffi;
18
18
use std:: os:: raw:: c_void;
19
19
use std:: process;
20
20
use std:: ptr:: null;
21
+ use std:: time:: { Duration , Instant } ;
22
+
21
23
#[ cfg( feature = "hardsubx_ocr" ) ]
22
24
use tesseract_sys:: * ;
23
25
extern "C" {
@@ -195,7 +197,14 @@ pub unsafe fn _dinit_hardsubx(ctx: &mut HardsubxContext) {
195
197
/// Dereferences a raw pointer (datamember of the object ctx)
196
198
#[ no_mangle]
197
199
pub unsafe extern "C" fn hardsubx ( options : * mut ccx_s_options , ctx_normal : * mut lib_ccx_ctx ) {
200
+ println ! ( "HardsubX (Hard Subtitle Extractor) - Burned-in subtitle extraction subsystem\n " ) ;
201
+
198
202
let mut ctx = HardsubxContext :: new ( options) ;
203
+
204
+ let start = Instant :: now ( ) ;
199
205
hardsubx_process_data ( & mut ctx, ctx_normal) ;
206
+ let duration: Duration = start. elapsed ( ) ;
207
+
208
+ println ! ( "Processing time = {:?}" , duration) ;
200
209
_dinit_hardsubx ( & mut ctx) ;
201
210
}
You can’t perform that action at this time.
0 commit comments